[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.14,1.15
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.14,1.15 |
Date: |
Fri, 03 Jan 2003 23:40:24 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv3962/runtime/System/IO
Modified Files:
File.cs
Log Message:
Patch #917 from Aditya Bansod for File.Set*Time
Index: File.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/File.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** File.cs 25 Dec 2002 04:14:06 -0000 1.14
--- File.cs 4 Jan 2003 04:40:22 -0000 1.15
***************
*** 253,267 ****
[TODO]
! public static void SetCreationTime(string path, DateTime time)
{
Exception e = ValidatePath(path, "path");
if(e != null) { throw e; }
}
! [TODO]
! public static void SetLastWriteTime(string path, DateTime time)
{
Exception e = ValidatePath(path, "path");
if(e != null) { throw e; }
}
--- 253,282 ----
[TODO]
! public static void SetCreationTime(string path, DateTime
creationTime)
{
Exception e = ValidatePath(path, "path");
if(e != null) { throw e; }
}
+
+ [TODO]
+ public static void SetLastAccessTime(string path, DateTime
lastAccessTime)
+ {
+ Exception e = ValidatePath(path, "path");
+ if(e != null) { throw e; }
! Errno err = FileMethods.SetLastAccessTime(path,
lastAccessTime.ToUniversalTime().Ticks);
! e = GetTimeExceptionHandler(err);
! if(e != null) { throw e; }
! }
!
! public static void SetLastWriteTime(string path, DateTime
lastWriteTime)
{
Exception e = ValidatePath(path, "path");
if(e != null) { throw e; }
+
+ Errno err = FileMethods.SetLastWriteTime(path,
lastWriteTime.ToUniversalTime().Ticks);
+ e = GetTimeExceptionHandler(err);
+ if(e != null) { throw e; }
+
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO File.cs,1.14,1.15,
Gopal.V <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2047,1.2048
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h,1.41,1.42 int_table.c,1.43,1.44 lib_file.c,1.6,1.7
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnet ChangeLog,1.2047,1.2048
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/engine int_proto.h,1.41,1.42 int_table.c,1.43,1.44 lib_file.c,1.6,1.7
- Index(es):