NSFileManager(GBFileManager) Category Reference
Declared in | NSFileManager+GBFileManager.h NSFileManager+GBFileManager.m |
Tasks
Other Methods
-
– isPathDirectory:
Determines if the given path is a directory.
Other Methods
-
– isPathDirectory:
Determines if the given path is a directory.
Instance Methods
isPathDirectory:
Determines if the given path is a directory.
- (BOOL)isPathDirectory:(NSString *)path
Parameters
- path
- The path to test.
Return Value
Returns YES
if the given path is a directory, NO
otherwise.
Discussion
The method returns YES
if the given path exists and is a directory, NO
otherwise. This makes directory checking
one-line of code, however does not give information on whether the path exists or not! Use `
Declared In
NSFileManager+GBFileManager.h