char *path is the name of a directory.
The parameter must be a writable string because the string is not permanently modified.