Java Folder Read getFiles(String path)

Here you can find the source of getFiles(String path)

Description

get Files

License

Open Source License

Declaration

public static File[] getFiles(String path) 

Method Source Code

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

import java.io.File;

public class Main {

    public static File[] getFiles(String path) {
        File file = new File(path);
        if (file.exists()) {
            return file.listFiles();
        }/*  w ww  .j av  a 2  s  . c  o  m*/
        return null;
    }
}

Related

  1. getFiles(String dir)
  2. getFiles(String directoryPath)
  3. getFiles(String dirName, int number)
  4. getFiles(String folderName, String prefix)
  5. getFiles(String parent)
  6. getFiles(String path)
  7. getFiles(String path)
  8. getFiles(String path)
  9. getFiles(String PATH)