I have an NSString containing a path, but it could be either a file, or a directory.
Is there an equivalent to the Python os.path.isdir() and os.path.isfile() methods in Cocoa?
os.path.isdir()
os.path.isfile()