• 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
getting accurate file modification time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting accurate file modification time?


  • Subject: getting accurate file modification time?
  • From: Angelo Chen <email@hidden>
  • Date: Tue, 17 Jun 2008 20:04:12 -0700 (PDT)

Hi,

I use the code at end to get modification timestamp of a file including seconds, it works well until I encounter following:

I have a file that is in the Document folder, the creation and modification date are both:2008-05-04 22:06:46 +0800

when this file is copied to a FAT volume, naturally the creation date is lost, modification date become:
2008-05-04 22:06:47 +0800

Any idea why this happens? Thanks,

Angelo


NSFileManager *fileManager = [NSFileManager defaultManager];
NSDictionary *fileAttributes = [fileManager fileAttributesAtPath:path traverseLink:YES];
fileModDate = [fileAttributes objectForKey:NSFileModificationDate];


      Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊!
_______________________________________________

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 accurate file modification time?
      • From: Chris Suter <email@hidden>
    • Re: getting accurate file modification time?
      • From: Graham Cox <email@hidden>
    • Re: getting accurate file modification time?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: noob question regarding (programmatic) bindings and data type coercion
  • Next by Date: Re: getting accurate file modification time?
  • Previous by thread: Re: File System Notifications
  • Next by thread: Re: getting accurate file modification time?
  • Index(es):
    • Date
    • Thread