{
private bool exists;
-#if MOONLIGHT
- internal FileInfo ()
- {
- }
-#endif
public FileInfo (string fileName)
{
if (fileName == null)
{
MonoIOError error;
+ SecurityManager.EnsureElevatedPermissions (); // this is a no-op outside moonlight
+
if (!MonoIO.Exists (FullPath, out error))
// a weird MS.NET behaviour
return;
#if !NET_2_1
public FileSecurity GetAccessControl ()
{
- throw new NotImplementedException ();
+ return File.GetAccessControl (FullPath);
}
public FileSecurity GetAccessControl (AccessControlSections includeSections)
{
- throw new NotImplementedException ();
+ return File.GetAccessControl (FullPath, includeSections);
}
[ComVisible (false)]
public void SetAccessControl (FileSecurity fileSecurity)
{
- throw new NotImplementedException ();
+ File.SetAccessControl (FullPath, fileSecurity);
}
#endif
}