When and Force fodler refresh


cd . # untested

Testing implementation (not battle proven or tested): when.

Update: That didn’t work at all, the refresh had no influence on inotifywait.

The more dumb approach might work (removing inotifywait), comparing two ls outputs for example:

ls -tlhar > ~/tmp/ls.txt
# wait a bit
ls -tlhar > ~/tmp/ls2.txt
# compare
diff -u ls.txt ls2.txt | grep "^[+]"
# if the comparion in not null, then mv ls2.txt to ls.txt
# and wait/repeat

edit: dumbwhen could be the thing.