Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get files in directory

File folder = new File("/Users/you/folder/");
File[] listOfFiles = folder.listFiles();

for (File file : listOfFiles) {
    if (file.isFile()) {
        System.out.println(file.getName());
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #files #directory
ADD COMMENT
Topic
Name
8+8 =