Java Folder Read getFiles(File f, List response)

Here you can find the source of getFiles(File f, List response)

Description

get Files

License

Apache License

Declaration

private static void getFiles(File f, List<String> response) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.File;

import java.util.List;

public class Main {
    private static void getFiles(File f, List<String> response) {
        File files[];/*from  w w  w .jav a  2 s.  c om*/
        if (f.isFile()) {
            response.add(f.getAbsolutePath());
        } else {
            files = f.listFiles();
            for (int i = 0; i < files.length; i++) {
                getFiles(files[i], response);
            }
        }
    }
}

Related

  1. getFiles(File dir, String... names)
  2. getFiles(File directory)
  3. getFiles(File directory)
  4. getFiles(File directory)
  5. getFiles(File directory)
  6. getFiles(File file)
  7. getFiles(File file, Collection ret)
  8. getFiles(File folder)
  9. getFiles(File folder)