I can't tell from the code if it deletes the thumbnail on every file change. If so, we've tried that approach already and gave up on it because it yeilds 100% CPU load on continuously written files (e.g. large downloads).
Instead, inotify provides a "close_write" event, which is emitted when *closing* a file that was written to. Please use such an event instead.
I can't tell from the code if it deletes the thumbnail on every file change. If so, we've tried that approach already and gave up on it because it yeilds 100% CPU load on continuously written files (e.g. large downloads).
Instead, inotify provides a "close_write" event, which is emitted when *closing* a file that was written to. Please use such an event instead.