is watchman notifies for deleted files? -


i tried find in documentation , did not find indication.

i read win32 watch code (because familiar api , seems not).

tracking file deletion extremely convoluted on windows, because api provides file names "randomly" mangled , if file not there anymore resolve real name "long path" hard original.

i have implemented such thing previous company, preserving current state of files , reconciling list of files every directory changes happening inside. worked well.

my question is: did miss , watchman notifies deleted files? , if not - there plans these notifications added in near future.

the short answer: yes.

the longer answer: more convoluted portions not entirely windows specific.

the bit handles mangled names can found here: https://github.com/facebook/watchman/blob/master/root.c#l748

the bit handles deletes in 2 parts; first handles things when we're checking file notified about: https://github.com/facebook/watchman/blob/master/root.c#l853

the second kind of "garbage collection" approach we're looking @ containing directory , discover file has gone away: https://github.com/facebook/watchman/blob/master/root.c#l1353


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -