• 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
Backup color label
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Backup color label


  • Subject: Backup color label
  • From: "gMail.com" <email@hidden>
  • Date: Mon, 13 Sep 2010 19:39:53 +0200
  • Thread-topic: Backup color label

Hi,
I need to backup only these files changes (not the content):
    Label color in the Finder
    Filename (uppercase, lowercase)
    Permissions
    Lock Status
So I check the st_ctime of the files and detect whether to copy or not to
copy their attributes with FSSetCatalogInfo. The problem is that the
destination file st_ctime gets the system date at the moment I call
FSSetCatalogInfo. Instead I need to set it as well as the source file,
otherwise if I run the backup again I soon discover that the destination
file's st_ctime is more recent than the source file's one, while the
attributes are equal. So I wrongly backup forth and back forever.
Any solution?

Thanks
Leo


_______________________________________________

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

  • Prev by Date: Re: ScriptingBridge problem
  • Next by Date: Viewing a single NSTextStorage with two sets of attributes
  • Previous by thread: Re: ScriptingBridge problem
  • Next by thread: Viewing a single NSTextStorage with two sets of attributes
  • Index(es):
    • Date
    • Thread