[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.13,1.14
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.13,1.14 |
Date: |
Tue, 24 Dec 2002 23:14:08 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv26712/runtime/System/IO
Modified Files:
File.cs
Log Message:
Patch 884 -- Aditya Bansod's File.Copy() implementation
Index: File.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/File.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** File.cs 21 Dec 2002 06:40:30 -0000 1.13
--- File.cs 25 Dec 2002 04:14:06 -0000 1.14
***************
*** 57,66 ****
if (e != null) { throw e; }
! Errno err = DirMethods.Copy(source, dest);
switch(err)
{
-
-
// If Dest Exists
case Errno.EEXIST:
--- 57,64 ----
if (e != null) { throw e; }
! Errno err = FileMethods.Copy(source, dest);
switch(err)
{
// If Dest Exists
case Errno.EEXIST:
***************
*** 71,79 ****
else
{
! throw new
IOException(_("IO_CopyFileExists"));
}
break;
-
-
// Directory or File not found
--- 69,76 ----
else
{
! throw new
IOException(String.Format(
!
_("IO_CopyFileExists"),dest));
}
break;
// Directory or File not found
***************
*** 258,261 ****
--- 255,260 ----
public static void SetCreationTime(string path, DateTime time)
{
+ Exception e = ValidatePath(path, "path");
+ if(e != null) { throw e; }
}
***************
*** 263,266 ****
--- 262,267 ----
public static void SetLastWriteTime(string path, DateTime time)
{
+ Exception e = ValidatePath(path, "path");
+ if(e != null) { throw e; }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.13,1.14,
Gopal.V <address@hidden> <=