Locating moved or renamed file
Locating moved or renamed file
- Subject: Locating moved or renamed file
- From: Bartlomiej Cichosz <email@hidden>
- Date: Sun, 9 Nov 2003 00:45:50 -0500
Greetings all,
I am new to Cocoa programming and I am learning by trying to write a
photo album application. I was wondering if someone could point me in
the direction of a solution to the following problem:
If I store a reference to a file as path and filename, whenever the
file is renamed or moved, I loose that link. This does not happen, for
example, in iTunes - the app appears to be keeping track of songs in
its library even if they are moved or renamed via Finder. My first
guess was that inode number is stored as well, but I don't see a way of
finding out the location from inode number, at least not without
traversing the filesystem (and the number could point to multiple
filenames). So, there has to be another mechanism to do this.
I'd appreciate any help.
Bart
_______________________________________________
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.