Instance Method

changeCurrentDirectoryPath:

Changes the path of the current working directory to the specified path.

Declaration

- (BOOL)changeCurrentDirectoryPath:(NSString *)path;

Parameters

path

The path of the directory to which to change.

Return Value

YES if successful, otherwise NO.

Discussion

All relative pathnames refer implicitly to the current working directory.

See Also

Related Symbols

- fileExistsAtPath:isDirectory:

Returns a Boolean value that indicates whether a file or directory exists at a specified path. The isDirectory out parameter indicates whether the path points to a directory or a regular file.

- contentsOfDirectoryAtPath:error:

Performs a shallow search of the specified directory and returns the paths of any contained items.

currentDirectoryPath

The path to the program’s current directory.