1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Enable dirOf test

Adjusted the doc comment for `dirOf` to reflect the implementation
behavior.
This commit is contained in:
Tobias Pflug 2020-05-08 15:03:44 +02:00
parent 5b8883faac
commit e3df9c2a6e
2 changed files with 4 additions and 6 deletions

View file

@ -58,8 +58,8 @@ Path canonPath(const Path & path, bool resolveSymlinks = false);
/* Return the directory part of the given canonical path, i.e.,
everything before the final `/'. If the path is the root or an
immediate child thereof (e.g., `/foo'), this means an empty string
is returned. */
immediate child thereof (e.g., `/foo'), this means `/'
is returned.*/
Path dirOf(const Path & path);
/* Return the base name of the given canonical path, i.e., everything