Im working on getting any hooks before accessing a file. Let’s say, we have FileWatcher in Java for monitoring file changes(modify, delete). But I would like to get some other ideas than FileWatcher to access a file before it is getting changed to get a backup of the file-before any changes are applied to that file. Is there any alternate for FileWatcher?
I tried FileWatcher, but it is getting a little messy.
rabbitpie0806 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2