* File.cs:
(Create): allow file names without path.
svn path=/trunk/mcs/; revision=6221
+2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * File.cs:
+ (Create): allow file names without path.
Fri Jul 26 15:45:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
throw new NotSupportedException();\r
\r
string DirName = Path.GetDirectoryName(path);\r
- if (!Directory.Exists (DirName))\r
+ if (DirName != String.Empty && !Directory.Exists (DirName))\r
throw new DirectoryNotFoundException("Destination directory not found: " + DirName);\r
if (Exists(path)){\r
if ((GetAttributes(path) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly){\r