FSPath is a small, simple Java API designed to make filesystem interaction a breeze. It takes it inspiration from JQuery and XPath, as well as Perl functions such as glob().

Here's and example of an FSPath query :

  //file[fs:matches(@name, '[\w]{4}-[0-9]{8}.log')]

The above example would match any file in any subdirectory below your current working directory, where the file name matches the pattern xxxx-nnnnnnnn.log where x is a word character and n is a number.


  • FSPath 1.0-alpha released


FSPath is a simple but powerful API all contained in one tiny jar file see the tutorials for how to get started.

Also included in the FSPath jar is a simple command line interface , which is very useful for testing FSPath expressions.