Closed nathansantanna closed 8 years ago
Sorry, i think i was using an old version, I downloaded the repository, and now is working fine
@nathansantanna I believe the latest changes (updated in NuGet) fixes your issue. Please let me know if it did or not. Thanks
Worked perfectly thanks !
But now, i'm having some problems on
Directory.SetAccessControl(string Path, DirectorySecurity directorySecurity )
File.SetAccessControl(string Path, FileSecurity fileSecurity )
doesn't adds the rule on my folder or file, with System.IO works fine.
Here's how i'm using. public void RemoveFileSecurity(FileSystemAccessRule rule) { FileSecurity fileSecurity = File.GetAccessControl(Path); fileSecurity.RemoveAccessRule(rule); System.IO.File.SetAccessControl(Path, fileSecurity); }
thanks in advance!
Im trying to set acl programatically, but "File.SetAccessControl(string path, FileSecurity FileSecurity)"didn't work, "File.GetAccessControl(string path)" worked fine!
;