Add isDirectoryWithPath: method.