Sync deleted and renamed files
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.