Java File List Load getFileList(String path)

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

Description

get File List

License

Open Source License

Declaration

public static String[] getFileList(String path) 

Method Source Code


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

import java.io.File;

public class Main {
    public static String[] getFileList(String path) {
        File directory = new File(path);

        if (directory.isDirectory()) {
            return directory.list();
        } else {/*from   w ww  .  j  av a2  s.  com*/
            System.out.println("Lessons directory not found! at " + directory.getAbsolutePath());
            return null;
        }
    }
}

Related

  1. getFileList(String directoryPath)
  2. getFileList(String filePath, FileFilter fileFilter, boolean recursive)
  3. getFileList(String folderPath)
  4. getFileList(String inputFilename)
  5. getFileList(String path)
  6. getFileList(String path)
  7. getFileList(String path)
  8. getFileList(String path)
  9. getFileList(String path, String filterName)