Merge branch '2.18-maintenance' into ifd-buildStore-2.18

This commit is contained in:
Shea Levy
2024-01-11 07:21:16 -05:00
685 changed files with 680 additions and 841 deletions
+3 -1
View File
@@ -1536,7 +1536,9 @@ static void prim_pathExists(EvalState & state, const PosIdx pos, Value * * args,
auto path = realisePath(state, pos, arg, { .checkForPureEval = false });
/* SourcePath doesn't know about trailing slash. */
auto mustBeDir = arg.type() == nString && arg.str().ends_with("/");
auto mustBeDir = arg.type() == nString
&& (arg.str().ends_with("/")
|| arg.str().ends_with("/."));
try {
auto checked = state.checkSourcePath(path);