Detect if file deleted

Question #1:

Is there a listener for detecting if a file has been deleted either throught intellij or via file system?
Like detecting when files change content.

Question #2:

Also is there api for detecting if a file changed/deleted since last time intellij was started?
IE:
If I shutdown intellij
then I edit a file manually or delete the file from the file system.
then startup intellij
would like to be notified that file was deleted or changed since last time intellij was opened?

Thanks
Mike

0

Please sign in to leave a comment.