I found inotifywait-polling.sh useful as a workaround for watching windows folders bindmounted into docker on WSL2.
Thanks for sharing the script. 👍
But I noticed one defect - this version does not report file modifications that do not change size of the file, like typo fixes "teh" -> "the". There is simply not enough info in .inotifywait to detect this case.
Adding additional field with modification date %@T to .inotifywait file solved the problem for me, so I thought it would be good to share.
I found inotifywait-polling.sh useful as a workaround for watching windows folders bindmounted into docker on WSL2. Thanks for sharing the script. 👍
But I noticed one defect - this version does not report file modifications that do not change size of the file, like typo fixes "teh" -> "the". There is simply not enough info in
.inotifywait
to detect this case.Adding additional field with modification date
%@T
to.inotifywait
file solved the problem for me, so I thought it would be good to share.