зеркало из https://github.com/github/ruby.git
NTFS's ctime is creation time! [ruby-core:33269]
Note that UFS2, HFS+, ZFS, and ext4 also have birth time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
99aaee351e
Коммит
1346b84c19
6
file.c
6
file.c
|
@ -713,6 +713,8 @@ rb_stat_mtime(VALUE self)
|
|||
* directory information about the file was changed, not the file
|
||||
* itself).
|
||||
*
|
||||
* Note that on Windows (NTFS), returns creation time (birth time).
|
||||
*
|
||||
* File.stat("testfile").ctime #=> Wed Apr 09 08:53:14 CDT 2003
|
||||
*
|
||||
*/
|
||||
|
@ -1869,6 +1871,8 @@ rb_file_mtime(VALUE obj)
|
|||
* directory information about the file was changed, not the file
|
||||
* itself).
|
||||
*
|
||||
* Note that onn Windows (NTFS), returns creation time (birth time).
|
||||
*
|
||||
* File.ctime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
|
||||
*
|
||||
*/
|
||||
|
@ -1892,6 +1896,8 @@ rb_file_s_ctime(VALUE klass, VALUE fname)
|
|||
* Returns the change time for <i>file</i> (that is, the time directory
|
||||
* information about the file was changed, not the file itself).
|
||||
*
|
||||
* Note that onn Windows (NTFS), returns creation time (birth time).
|
||||
*
|
||||
* File.new("testfile").ctime #=> Wed Apr 09 08:53:14 CDT 2003
|
||||
*
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче