site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+dsgSZZ4YM8iAdNk0oxmosZmplHliM8PuwAYPst8As0=; b=rko0euhFSkNcWceB8CMm5zVtlInrpHtPRfSTn1Au86qqvFhqPOUDHOfyFdYxkki0r/ NcrnrqWwVmiR3dePeSvDj1VytVcvRKM64qFLIKgBs5peMXaU882411eEaMQaOm41XUZP 2PyIvxJB5BIGz/tSCfA9ScE462tkoVYN5HYtI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xkLev9hIDghsV7u1qHRbCdToPmcUHg4wdMJTSsFk2+pPJQT1eSyrnLIEnz3J0Jixar WSh4ZM1kWAl8337cB9/fDEpRDFjLMPURLJCFm8q0hsm2m3XrUbsysXBjh+aMDoejzFAp ma+mn8SA9+NzrfT7vXnC7tqwBZGjxjdvoDiXk= It would be better for me to use FSResolveAliasFile() for identifying aliases instead of using FSIsAliasFile(). "wasAliased" is set to TRUE if the input is an Alias otherwise FALSE. Also, if it cannot find the target of the alias or if a file with .alias extension is not an alias it returns an error. This should be enough for me. Thanks On 10/22/09, Paul M <list@no-tek.com> wrote:
This wont tell you if whether or not it's an alias file if that's what you're asking. It will only tell you it hasn't found the target.
Eg, a regular file, say xx.alias, will be indistinguishable from a genuine alias who's target is on an unmounted filesystem, has been deleted, or is otherwise unavailable for whatever reason.
paulm
On 22/10/2009, at 5:44 PM, rohan a wrote:
I see that FSResolveAliasFile() fails when its cannot find target of the alias with the error fnfErr. In case of a file with a .alias extension which is not an alias file, could I use this error return value ?
On Wed, Oct 21, 2009 at 3:49 PM, rohan a <info1686@gmail.com> wrote:
My aim here is to know when I backup what the alias file points to and then backup the alias file along with the name of the file it points to. Just like a symbolic link, where we need to know what it points to.
On Wed, Oct 21, 2009 at 10:03 AM, Keith Stattenfield <keith@stattenfield.org> wrote:
On Oct 20, 2009, at 9:04 PM, rohan a wrote:
This looks good.
However, with a backup application, I would typically be using FSIsAliasFile() to identify an alias and then use FSResolveAliasFile() to resolve it. However,here the FSResolveAlias() file would fail causing issues. Need to deal separately with these cases
In general, you'd backup the contents of the alias file, not what it points to, because there's no guarantee that you can resolve the alias -- it might be to an item on a file server that isn't accessible, or to an un-mounted local disk, or to an item that you'd need a password from the user to resolve, or even be an alias to an item which has been deleted.
-Keith
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/list%40no-tek.com
This email sent to list@no-tek.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com