Created
February 14, 2016 17:29
-
-
Save dangnhdev/1299cde8132fcaf89dd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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