使用 filectime
- 对于Windows,它将返回创建时间,
- 而对于Unix,更改时间是最好的,因为在Unix上没有创建时间(在大多数文件系统中)。而对于Unix,更改时间是最好的,因为在Unix上没有创建时间(在大多数文件系统中)。
Note also that in some Unix texts the
ctime of a file is referred to as
being the creation time of the file.
This is wrong. There is no creation
time for Unix files in most Unix
filesystems.