cpp/filesystem/path/parent path

Returns the path to the parent directory.

If returns false, the result is a copy of. Otherwise, the result is a path whose generic format pathname is the longest prefix of the generic format pathname of that produces one fewer element in its iteration.

Parameters
(none)

Return value
The path to the parent directory, or a copy of if not.