• 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
Volume creation date attribute?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Volume creation date attribute?


  • Subject: Volume creation date attribute?
  • From: James Bucanek <email@hidden>
  • Date: Sat, 29 Sep 2012 12:05:32 -0700

Greetings,

The Core Services file manager routines would return a "create date" property for volumes (FSVolumeInfo.createDate). This is the same "created" date you see in the Finder's Get Info window.

Is there an equivalent in the BSD/NS/CF APIs? I can find no attribute (for getattrlist(), NSURL, or CFURL) or field (in statfs) that corresponds to that value.

Writing a few test programs, I did discover that getting the creation date of the mountpoint directory (statfs.f_mntonname) for the volume returns the creation date of the volume as reported by FSGetVolumeInfo.

Is this by design or simply happenstance? If the former, is it reasonably safe to rely on it in the future?

James
--
James Bucanek


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Volume creation date attribute?
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Is statfs.f_bsize available through getattrlist()?
  • Next by Date: Spotlight reindexing taking days or weeks
  • Previous by thread: Re: Is statfs.f_bsize available through getattrlist()?
  • Next by thread: Re: Volume creation date attribute?
  • Index(es):
    • Date
    • Thread