Java Folder Read getFiles(File folder)

Here you can find the source of getFiles(File folder)

Description

get Files

License

Open Source License

Declaration

public static File[] getFiles(File folder) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static File[] getFiles(File folder) {
        if (folder != null && folder.exists()) {
            File[] files = folder.listFiles();
            if (files != null)
                return files;
        }/*  www. j a va 2s . com*/
        return new File[0];
    }
}

Related

  1. getFiles(File f, List response)
  2. getFiles(File file)
  3. getFiles(File file, Collection ret)
  4. getFiles(File folder)
  5. getFiles(File folder)
  6. getFiles(File indir)
  7. getFiles(File... repertoires)
  8. getFiles(final File dir)
  9. getFiles(final File root, final String[] endings)