mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
These will change in the next commit to fix the silent regression from 2.23 in the handling of multiple subsequent path separators.
21 lines
753 B
Nix
21 lines
753 B
Nix
{
|
|
stringEmpty = dirOf "";
|
|
stringNoSep = dirOf "filename";
|
|
stringSingleDir = dirOf "a/b";
|
|
stringMultipleSeps = dirOf "a///b";
|
|
stringRoot = dirOf "/";
|
|
stringRootSlash = dirOf "//";
|
|
stringRootSlashSlash = dirOf "///";
|
|
stringRootA = dirOf "/a";
|
|
stringWithDot = dirOf "a/b/c/./d";
|
|
stringWithDotSep2 = dirOf "a/b/c/.//d";
|
|
stringWithDotDot = dirOf "a/b/c/../d";
|
|
stringWithDotDotSep2 = dirOf "a/b/c/..//d";
|
|
stringWithDotAndDotDot = dirOf "a/b/c/.././d";
|
|
stringWithDotAndDotDotSep2 = dirOf "a/b/c/.././/d";
|
|
|
|
pathRoot = dirOf /.;
|
|
pathDoesntExistRoot = dirOf /totallydoesntexistreally;
|
|
pathDoesntExistNested1 = dirOf /totallydoesntexistreally/subdir1;
|
|
pathDoesntExistNested2 = dirOf /totallydoesntexistreally/subdir1/subdir2;
|
|
}
|