marschall / memoryfilesystem

An in memory implementation of a JSR-203 file system
282 stars 36 forks source link

feat: `newDirectoryStream` follows symlinks #152

Closed guicamest closed 10 months ago

guicamest commented 10 months ago

The PR allows newDirectoryStream to follow symbolic links when the target of the link is a directory. The change helps the library to behave like the java implementations of Filesystem.

As an example:

/
/Volumes
/Volumes/Macintosh HD (symlink to /)
/somefile.txt

Files.newDirectoryStream() for /Volumes/Macintosh HD should return Volumes and somefile.txt

marschall commented 10 months ago

Not sure if bug or enhancement. Anyway thank your for your contribution, I will have a look.

marschall commented 10 months ago

I just released 2.7.0 with your changes to Maven Central, it should become available in a few hours. Thanks again for your contribution.

guicamest commented 10 months ago

Sounds great! Thanks for the fast reply ⚡ I didn't know either if it was a bug or enhancement😅 Keep up the good work, great library 👏