Alias vs. Symbolic Link
Alias vs. Symbolic Link
- Subject: Alias vs. Symbolic Link
- From: Steve Gehrman <email@hidden>
- Date: Sat, 5 May 2001 15:50:02 -0700
Is there a difference between a symbolic link and a alias created in the
finder? I have some code that doesn't work with aliases created in the
finder.... Am I missing something? When I call this method with an
alias, the type returned is: NSFileTypeRegular.
+ (BOOL)isAlias:(NSString*)filePath
{
BOOL result = NO;
NSDictionary *fattrs;
fattrs = [[NSFileManager defaultManager]
fileAttributesAtPath:filePath traverseLink:NO];
if (fattrs)
result = ([fattrs fileType] == NSFileTypeSymbolicLink);
return result;
}
steve