You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
39
mcs/class/corlib/corefx/FileInfo.cs
Normal file
39
mcs/class/corlib/corefx/FileInfo.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security.AccessControl;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
public partial class FileInfo
|
||||
{
|
||||
private FileInfo(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
||||
|
||||
public FileSecurity GetAccessControl()
|
||||
{
|
||||
return File.GetAccessControl(FullPath, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group);
|
||||
}
|
||||
|
||||
public FileSecurity GetAccessControl(AccessControlSections includeSections)
|
||||
{
|
||||
return File.GetAccessControl(FullPath, includeSections);
|
||||
}
|
||||
|
||||
public void SetAccessControl(FileSecurity fileSecurity)
|
||||
{
|
||||
File.SetAccessControl(FullPath, fileSecurity);
|
||||
}
|
||||
|
||||
// Reference source code in Mono still uses this
|
||||
internal FileInfo(string fullPath, bool ignoreThis)
|
||||
{
|
||||
_name = Path.GetFileName(fullPath);
|
||||
OriginalPath = _name;
|
||||
FullPath = fullPath;
|
||||
}
|
||||
|
||||
public override String Name {
|
||||
get { return _name; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user