Replies: 1 comment 5 replies
-
Windows can mark the file for deletion directly at
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally posted by @Liryna in #970 (comment)
I want to control the right of deleting a file, I know that cleanup can't be stopped and try to use another fuction: DeleteFile in dokan_operations.
the interface comment says:
DeleteFile will also be called with DOKAN_FILE_INFO.DeleteOnClose set to \c FALSE to notify the driver when the file is no longer requested to be deleted.
And DeleteFile can return STATUS_ACCESS_DENIED to stop delete.
But I find DeleteFile is not called when I delete a file in a file system created by the memfs.exe, so how can I control the right of delete.
Beta Was this translation helpful? Give feedback.
All reactions