jakdept / dir

Provides a Go package to return folder structure under a given point recursively, watching for updates.
MIT License
1 stars 0 forks source link

does not properly track symlinks #5

Open jakdept opened 7 years ago

jakdept commented 7 years ago

the tracker does not currently handle symlinks to folders properly. Symlinks created within the watch directory should update - and list the folders they can hit.

i will have to sooner or later watch for symlinks to / probably - not sure where that'll be yet.

jakdept commented 7 years ago

correcting this is not as simple as i thought.

in order to correct this, I'll have to find all symlinks in the path, and enumerate them, then reduce and simplify the problem to try to find common symlinks/paths outside of the sub path.

changing documentation and library instead to mention that symlinks to directories are not supported.