I saw this question: Prevent a user from deleting, moving or renaming a file, but it doesn't meet my needs.
If I understood correctly, as long as that stream is opened, the file is locked.
I want to have a list of files in my computer, inside some folder, that cannot be edited, or renamed.
The edit prevention is easy - I just set System.IO.FileAttributes.ReadOnly
(Works well)
Now I need to prevent a rename of a files and directories