Uses system calls to set the times on a file or directory.
使用系统调用上设置一个文件或目录的时间。
用法----------Usage----------
Sys.setFileTime(path, time)
参数----------Arguments----------
参数:path
A length-one character vector specifying the path to a file or directory.
一个长度为一个字符向量指定的文件或目录的路径。
参数:time
A date-time of class "POSIXct" or an object which can be coerced to one. Fractions of a second are ignored.
日期时间类"POSIXct"或可强制到一个对象。第二个分数都将被忽略。
Details
详情----------Details----------
This attempts sets the file time to the value specified.
这种尝试设置文件的时间到指定的值。
On a Unix-alike it uses the system call utimes if that is available, otherwise utimes. On a POSIX file system it sets both the last-access and modification times.
上一个Unix相似,它使用的系统调用utimes如果这是可用的,否则utimes。上一个POSIX文件系统,它集最后访问和修改时间。
On Windows it uses the system call SetFileTime to set the "last write time". Some Windows file systems only record the time at a resolution of two seconds.
在Windows上使用的系统调用SetFileTime设置“最后写入时间”。一些Windows文件系统只记录在一两秒钟的决议的时间。
值----------Value----------
Logical, invisibly. An indication if the operation succeeded.
逻辑,无形的。如果指示操作成功。