Java Folder Read getFiles(String thePaths[])

Here you can find the source of getFiles(String thePaths[])

Description

Returns the Files for given paths.

License

Open Source License

Declaration

public static File[] getFiles(String thePaths[]) 

Method Source Code


//package com.java2s;
import java.io.File;

public class Main {
    /**/*from www . jav a2  s . co  m*/
     * Returns the Files for given paths.
     */
    public static File[] getFiles(String thePaths[]) {
        File files[] = new File[thePaths.length];
        for (int i = 0; i < thePaths.length; i++)
            files[i] = getFile(thePaths[i]);
        return files;
    }

    /**
     * Returns a File for given path.
     */
    public static File getFile(String aPath) {
        return new File(aPath);
    }
}

Related

  1. getFiles(String path, final String suffix)
  2. getFiles(String path, String endian)
  3. getFiles(String paths)
  4. getFiles(String realpath, List files, String[] fileType)
  5. getFiles(String rootDirectory)
  6. getFilesAndFilesSubDirectories(String directoryName, String regexPattern)
  7. getFilesArray(File baseStorePath, final String fileNameSearchPattern)
  8. getFilesAsArrayList(String path)
  9. getFilesByDate(String directory, final boolean earliestFirst)