• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Alias vs. Symbolic Link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Alias vs. Symbolic Link
      • From: email@hidden
  • Prev by Date: Re: (no subject)
  • Next by Date: Re: FindFolder Equivalent?
  • Previous by thread: Re: FindFolder Equivalent?
  • Next by thread: Re: Alias vs. Symbolic Link
  • Index(es):
    • Date
    • Thread