gjoseph / BarbaryWatchService

An implementation of Java 7’s WatchService for OS X
41 stars 10 forks source link

Handle symlinks on MAC #9

Closed maczikasz closed 2 years ago

maczikasz commented 7 years ago

Create a folder and a file in a directory that's symlinked (/var/tmp) Then start barbary watchservice Delete the file and the folder You will receive a Create event to the root folder

The following code, canot handle symlinks:

if (file.getAbsolutePath().startsWith(folderName) && !filesOnDisk.contains(file)) { Hence it will not find the files in the lastModifiedMap

gjoseph commented 2 years ago

Hi @maczikasz sorry for the slow response -- as you may have gathered, I haven't had capacity to maintain this project in a long time. I'm finally officially retiring it. See README for possible alternatives, if you're still needing this. ✌️

maczikasz commented 2 years ago

I did not expect to receive any kind of answer after 5 years :D but I since also moved on from the project that needed it, all the best to you