// System.IO.FileSystemInfo.cs
//
// Copyright (C) 2001 Moonlight Enterprises, All Rights Reserved
+// Copyright 2011 Xamarin Inc (http://www.xamarin.com).
//
// Author: Jim Richardson, develop@wtfo-guru.com
// Dan Lewis (dihlewis@yahoo.co.uk)
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
+using System.Security;
using System.Security.Permissions;
namespace System.IO {
}
set {
+ SecurityManager.EnsureElevatedPermissions (); // this is a no-op outside moonlight
+
long filetime = value.ToFileTime ();
MonoIOError error;
}
set {
+ SecurityManager.EnsureElevatedPermissions (); // this is a no-op outside moonlight
+
long filetime = value.ToFileTime ();
MonoIOError error;
}
set {
+ SecurityManager.EnsureElevatedPermissions (); // this is a no-op outside moonlight
+
long filetime = value.ToFileTime ();
MonoIOError error;
throw new ArgumentException ("An empty file name is not valid.");
if (path.IndexOfAny (Path.InvalidPathChars) != -1)
throw new ArgumentException ("Illegal characters in path.");
+ if (Environment.IsRunningOnWindows) {
+ int idx = path.IndexOf (':');
+ if (idx >= 0 && idx != 1)
+ throw new ArgumentException ("path");
+ }
}
internal MonoIOStat stat;