Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 10-07-2012, 04:08 PM   #1
benwiggy
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>
benwiggy is offline   Reply With Quote
Old 10-08-2012, 05:50 AM   #2
benwiggy
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.
benwiggy is offline   Reply With Quote
Old 10-08-2012, 11:11 AM   #3
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,560
Quote:
Originally Posted by benwiggy
1. Is this indicative of any file system problem? Disk Utility find no errors.

It's doubtful that a file system problem would show in that way. It probably just means that the date has been zeroed.

Quote:
Originally Posted by benwiggy
2. Any particular reason this happens, or way to avoid it? (Particularly with the downloads.)

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
trevor is offline   Reply With Quote
Old 10-09-2012, 03:08 PM   #4
hayne
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
hayne is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 08:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.