File Path Tracking
Gregory Weston
gweston at mac.com
Wed Oct 17 14:53:58 PDT 2007
Daniel Hazelbaker wrote:
> Summary: Thanks all for the input. It is not optimal but it sounds
> like storing the alias data as well as the unix path is my solution.
> If the unix path does not work (most of the time it will) then
> attempt to use the alias functions to determine what the new path is.
Since the default behavior of alias resolution is to check the stored
path first, why bother with an explicit path check beforehand? The
whole point of the alias mechanism is to robustly track files over
extended periods of time. Resolve the alias, and the system will tell
you in the process of that resolution whether the file has moved (and
thus the alias needs to be resaved for optimal efficiency). Bob's
your metaphorical uncle.
More information about the MacOSX-dev
mailing list