char *path is the name of a directory.
The parameter must be a writable string because it isn’t permanently modified.