|
|
#1 |
|
League Commissioner
Join Date: Aug 2006
Posts: 5,071
|
Creation Date issue
I've just noticed that I've got loads of files whose Creation Date is 1 Jan 1970 ("zero" day!). Most of them are downloads, but some are files and folders I've created.
So I'm wondering: 1. Is this indicative of any file system problem? Disk Utility find no errors. 2. Any particular reason this happens, or way to avoid it? (Particularly with the downloads.) I've found this natty little line to change the Creation Date to the Modified Date: SetFile -d "$(GetFileInfo -m test.txt)" <file> |
|
|
|
|
|
#2 |
|
League Commissioner
Join Date: Aug 2006
Posts: 5,071
|
Update: what's weird is that some files are 1:00 on 1 Jan 1970, and others are 13:00. I've also got some that are 2 Jan 1970 1:00.
I'm trying to create a script that will set the Creation date to the Modification date for these files (see my other thread in Unix -Beginners), just to make things a little more accurate. |
|
|
|
|
|
#3 | ||||||||||||||||||||||||||||||||||||||||||||||
|
Moderator
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,560
|
It's doubtful that a file system problem would show in that way. It probably just means that the date has been zeroed.
Sorry, I've got no useful feedback here. I don't know of any way to avoid it, perhaps someone else will be more helpful. Trevor
__________________
How to ask questions the smart way |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#4 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,956
|
I suspect that these files came from a (foreign, non-HFS) filesystem that does not store creation dates. E.g. the standard Unix filesystems store the date of last access, date of last change of permissions etc, and date of change of file content, but do not store the date of creation of a file.
__________________
hayne.net/macosx.html |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|