Skip to content

Instantly share code, notes, and snippets.

@dangnhdev
Created February 14, 2016 17:29
Show Gist options
  • Save dangnhdev/1299cde8132fcaf89dd0 to your computer and use it in GitHub Desktop.
Save dangnhdev/1299cde8132fcaf89dd0 to your computer and use it in GitHub Desktop.
import com.activestudy.Utility.file.FileUtils;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
/**
*
* @author dangg
*/
public class TestASLib {
public static void main(String[] args) throws IOException {
//thư mục cần tìm kiếm
Path dir = Paths.get("E:\\Project\\AmqServices");
//tìm kiếm các file có đuôi .java, .xml
List<Path> result = FileUtils.findFile("*.{java,xml}", dir);
//in kết quả ra màn hình
result.forEach(System.out::println);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment