Closed GeertJohan closed 6 years ago
Hi there. Thanks for reporting this. I've just revamped the relevant code, and added some unit tests to cover this case. Could you please confirm for me that the issue is fixed in the current master?
I just go-getted the latest versions. I get the same error (just a bit more verbose now, as it includes the path):
22:59:33: Error watching: could not watch path '/home/geertjohan/src/path/to/some/file': readdirent: not a directory
Heh. Let's try that again. :) I've just made some more changes in the moddwatch repo - how does it look on your end?
Yes, looks like it's working again, thanks!
It looks like a recent change to modd broke it's ability to watch for changes on a single file on linux.
e.g. with the following mod.conf:
This used to work fine, but now breaks with
Error watching: readdirent: not a directory
. When I remove the first selector (somefolder/Makefile
), modd runs fine.A nasty workarround is to add an asterist, e.g.:
someolder/*Makefile
, which sill then also matchMakefile
itself. However, it's not very nice and might result in unexpected behaviour, for example when somefolder/dontMindMe.Makefile is added.