| Declared in | NSFileManager+Extensions.h |
|---|
- (BOOL)isSymbolicLinkAtPath:(NSString *)path Path to check
YES if path is a symbolic link, NO otherwise
NSFileManager+Extensions.h- (BOOL)trashFileAtPath:(NSString *)path Path to move to trash
YES if successful, NO otherwise
NSFileManager+Extensions.h- (NSString *)symlinkForFile:(NSString *)file inDirectory:(NSString *)directory Target file of the symlink to look for
Directory in which to look for the symlink
Path to symlink on YES, nil on NO
Convenience method for symlinkExistsForFile:inDirectory:atPath:. Will return the path on YES, nil on NO
NSFileManager+Extensions.h- (BOOL)symlinkExistsForFile:(NSString *)file inDirectory:(NSString *)directory atPath:(NSString **)symlinkPathPointer Target file of the symlink to look for
Directory in which to look for the symlink
Pointer to an NSString. If method returns YES, it will contain the symlinkPath, otherwise it will point to a free place where to put a new symlink
YES if symlink exists, NO otherwise
If a symlink exists, this method will return YES and the passed symlinkPath pointer will be set to the correct symlink. Otherwise it will return NO and symlinkPath will point to a free path for the file.
NSFileManager+Extensions.hLast updated: 2010-5-13