Android Folder File List getFileList(File f)

Here you can find the source of getFileList(File f)

Description

get File List

Declaration

public static List<File> getFileList(File f) 

Method Source Code

//package com.java2s;

import java.io.File;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static List<File> getFileList(File f) {
        List<File> list = new ArrayList<File>();

        for (File tmp : f.listFiles()) {
            list.add(tmp);/*  www . jav a2s  .  c o m*/
        }

        return list;
    }
}

Related

  1. getFiles(File dir, List outList)
  2. listFiles(String fileName)
  3. pathContains(String root, String child)
  4. listFile(File file)
  5. listFiles(File file)
  6. getAllFiles(File root)
  7. getAllFiles(File root, FileFilter filter)