possible bug with getattrlist() and GetFileInfo
possible bug with getattrlist() and GetFileInfo
- Subject: possible bug with getattrlist() and GetFileInfo
- From: rohan a <email@hidden>
- Date: Sat, 30 May 2009 11:00:30 +0530
Hello All,
The getattrlist() API and the GetFileInfo command seem to be showing the modification time of a file when asked for the creation time.
For ex :
1. Created a file example with some contents
# ls -l example
-rw-r--r-- 1 root admin 6 May 30 10:56 example
/Developer/Tools/GetFileInfo example
file: "/example"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/30/2009 10:56:29
modified: 05/30/2009 10:56:29
Looks fine till here. Now if I modify the contents of the file "example".
ls -l example
-rw-r--r-- 1 root admin 12 May 30 10:58 example
/Developer/Tools/GetFileInfo example
file: "/example"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/30/2009 10:58:13
modified: 05/30/2009 10:58:13
How did the creation time of the file change? Since the GetFileInfo uses getattrlist() looks like a bug with this
I wrote my own program using getattrlist() and saw the same results as above.
Any thoughts on this?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden