Browse Source

mi DIr

master
AntonioFrische 2 years ago
parent
commit
a842880ab8
2 changed files with 11 additions and 1 deletions
  1. BIN
      bin/antoniofrische/com/mkDirFuction.class
  2. +11
    -1
      src/antoniofrische/com/mkDirFuction.java

BIN
bin/antoniofrische/com/mkDirFuction.class View File


+ 11
- 1
src/antoniofrische/com/mkDirFuction.java View File

@ -4,5 +4,15 @@ import java.io.IOException;
import java.io.File;
public class mkDirFuction {
public static File direct = new File("C:\\Users\\AntonioFrische\\OneDrive - ABACCO Solutions\\Documents\\Schule_22_23_CFGS\\Acceso_Datos\\SpringTool_4");
public static void main(String args[]) {
File[] dirList = direct.listFiles();
for(int i = 0; i < dirList.length; i++) {
if(dirList[i].isDirectory()) {
System.out.println("Dic: "+dirList[i]);
}else {
System.out.println("Archivo: "+dirList[i]);
}
}
}
}

Loading…
Cancel
Save