FUSE vs File Watchers: Choosing the Right File Monitoring Approach

Original Problem We have two directories plaintext and secret, which hold the unencrypted files and their encrypted counterparts respectively. We need to detect changes to plaintext and sync them to secret. Common Methods Polling Based The simplest method is to check the directory on a regular interval (polling) for changes by walking the directory and its files and comparing it against the cached last known state. This method can be less efficient and timely than the other two methods below but its biggest advantage is that it’s the least OS-dependent. ...

January 28, 2024 · 2 min · Leen