• 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
Sync deleted and renamed files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sync deleted and renamed files


  • Subject: Sync deleted and renamed files
  • From: Lorenzo Puleo <email@hidden>
  • Date: Wed, 30 Oct 2002 17:51:55 +0100

Hi,
I'm building a small tool that synchronizes files.
It works properly, but when I deleted a file from, say, the source folder,
at the next sync it has been copied back from the destination folder to the
source folder again.

Now I understand that at the end of each synchronization, I have to save a
hierachical "index" array regarding the content of the folders (just like a
photo of the current content and structure). Then I have to reuse that index
at the next synchronization, and compare what's changed. If a source file
was existing and now it doesn't exist anymore, I have to delete the
destination file. Right?

Now my question is: how could I detect if a file has been renamed?
More that the fileName, should I store in the "index" the ID of each file
and folders too? If yes, will this work on No-Mac FileSystem?

How should I do?
Any help or link to PDF about synchronizations is welcome. Thanks.

--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: performSelectorOnMainThread: problems
  • Next by Date: Re: Inheritance difficulty...
  • Previous by thread: Re: performSelectorOnMainThread: problems
  • Next by thread: NSDocuments without window associations
  • Index(es):
    • Date
    • Thread