from following quote taken javadoc.
filetime creationtime() returns creation time. creation time time file created. if file system implementation not support time stamp indicate time when file created method returns implementation specific default value, typically last-modified-time or filetime representing epoch (1970-01-01t00:00:00z).
returns: filetime representing time file created
i last-modified-time instead of creation time. else, having ubuntu 11.10, confirming ubuntu 11.10 file system not implement function? in advance.
this depends on filesystem, ext3 doesn't store creation time. ext4 have field 'crtime' holds information. ext4 has been default filesystem in ubuntu since 9.10, have ext4 filesystem.
edit: ok, apparently on unix filesystems cannot retrieve creation timestamp, copy of last modification time.
in unixfileattributes.java:
@override public filetime creationtime() { return lastmodifiedtime(); }
Comments
Post a Comment