FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sourcepulp/treespy: Simplified, zero dependency directory watching API for Java · GitHub

Latest commit

 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treespy

Simplified, zero dependency recursive directory watching API for Java SE 7+

Watch a directory recursively

    TreeSpy spy = SpyFactory.getSpy();
    
    String directory = "/home/wfaithfull"
	
	File home = new File(directory);
	
	spy.watchRecursive(home, (changedFile, eventType) -> {
		System.out.println(String.format("File %s changed", changedFile));
	});

Watch a directory recursively with a glob pattern

	TreeSpy spy = SpyFactory.getSpy();
    
    String directory = "/home/wfaithfull"
	
	File home = new File(directory);
	
	spy.watchRecursive(home, (changedFile, eventType) -> {
		System.out.println(String.format("File %s changed", changedFile));
	}, "glob:*.java", "glob:*.txt");

About

Simplified, zero dependency directory watching API for Java

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL