Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetAccessControl() [2/3]

static void System.IO.FileSystemAclExtensions.SetAccessControl ( this FileInfo fileInfo,
FileSecurity fileSecurity )
inlinestatic

Definition at line 55 of file FileSystemAclExtensions.cs.

56 {
57 if (fileInfo == null)
58 {
59 throw new ArgumentNullException("fileInfo");
60 }
61 if (fileSecurity == null)
62 {
63 throw new ArgumentNullException("fileSecurity");
64 }
65 string fullPath = Path.GetFullPath(fileInfo.FullName);
66 fileSecurity.Persist(fullPath);
67 }

References System.IO.FileSystemInfo.FullName, System.IO.Path.GetFullPath(), and System.Security.AccessControl.FileSystemSecurity.Persist().