• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getting file creation date from NTFS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting file creation date from NTFS


  • Subject: Re: getting file creation date from NTFS
  • From: "Paul Sanders" <email@hidden>
  • Date: Sun, 23 May 2010 19:07:02 +0100

> At the BSD layer, getattrlist() is the way to go here, with the ATTR_CMN_CRTIME attribute.

>From http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man2/getattrlist.2.html:

"Not all volumes support getattrlist().  The best way to test whether a volume supports this function is to simply call it and check the error result.  getattrlist() will return ENOTSUP if it is not supported
on a particular volume."

I would hazard a guess that NTFS volumes don't support this.  It's also a complicated API just to get a file time!  The more I see of this, the more I think that the Carbon File Manager is the best option.  I plan to review my own code in the light of this thread.  I'm not sure whether stat returns local times or UTC (it returns local times on Windows).  I am often on UTC here so it's not always possible to tell.  But, luckily, it is summer :)

Paul Sanders.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: getting file creation date from NTFS
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: getting file creation date from NTFS (From: Angelo Chen <email@hidden>)
 >Re: getting file creation date from NTFS (From: "Paul Sanders" <email@hidden>)
 >Re: getting file creation date from NTFS (From: Ken Thomases <email@hidden>)
 >Re: getting file creation date from NTFS (From: "Paul Sanders" <email@hidden>)
 >Re: getting file creation date from NTFS (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Core Data NSPopUpButtonCell and NSNumber
  • Next by Date: Re: Core Data NSPopUpButtonCell and NSNumber
  • Previous by thread: Re: getting file creation date from NTFS
  • Next by thread: Re: getting file creation date from NTFS
  • Index(es):
    • Date
    • Thread