[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.9,1.10
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.9,1.10 |
Date: |
Thu, 19 Dec 2002 23:39:58 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv29425/runtime/System/IO
Modified Files:
File.cs
Log Message:
Patch #871 for File.cs and Cosmetic changes for WebRequest
Index: File.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/File.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** File.cs 27 Oct 2002 20:31:57 -0000 1.9
--- File.cs 20 Dec 2002 04:39:56 -0000 1.10
***************
*** 44,67 ****
}
!
!
!
!
!
!
!
public static void Copy(string source, string dest, bool
overwrite)
{
! if (source == null || dest == null)
{
! throw new ArgumentNullException();
}
! if (!FileMethods.ValidatePathname(source) ||
!FileMethods.ValidatePathname(dest))
{
! throw new ArgumentException();
}
Errno err = DirMethods.Copy(source, dest);
--- 44,69 ----
}
!
public static void Copy(string source, string dest, bool
overwrite)
{
! if (source == null)
{
! throw new ArgumentNullException("source");
! }
! if (dest == null)
! {
! throw new ArgumentNullException("dest");
}
! if (!FileMethods.ValidatePathname(source))
{
! throw new
ArgumentException(_("IO_InvalidPathname"), "source");
}
+ if (!FileMethods.ValidatePathname(dest))
+ {
+ throw new
ArgumentException(_("IO_InvalidPathname"), "dest");
+ }
Errno err = DirMethods.Copy(source, dest);
***************
*** 107,112 ****
default:
throw new ArgumentException();
}
- }
public static FileStream Create(string path)
--- 109,114 ----
default:
throw new ArgumentException();
+ }
}
public static FileStream Create(string path)
***************
*** 130,139 ****
if (path == null)
{
! throw new ArgumentNullException();
}
if (!FileMethods.ValidatePathname(path))
{
! throw new ArgumentException();
}
--- 132,141 ----
if (path == null)
{
! throw new ArgumentNullException("path");
}
if (!FileMethods.ValidatePathname(path))
{
! throw new
ArgumentException(_("IO_InvalidPathname"), "path");
}
***************
*** 165,170 ****
throw new ArgumentException();
! }
! }
public static bool Exists(string path)
--- 167,172 ----
throw new ArgumentException();
! }
! }
public static bool Exists(string path)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.9,1.10,
Gopal.V <address@hidden> <=