upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/file_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/shims/file_system.cpp')
-rw-r--r--runtime/shims/file_system.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/shims/file_system.cpp b/runtime/shims/file_system.cpp
index 75bc06eb9..a965bfb0a 100644
--- a/runtime/shims/file_system.cpp
+++ b/runtime/shims/file_system.cpp
@@ -360,7 +360,9 @@ Target write_target(const std::wstring& path, bool copy_up) {
360 // check a failed open left the missing folders behind, and a create succeeded in a folder that was never made, 360 // check a failed open left the missing folders behind, and a create succeeded in a folder that was never made,
361 // below a package file (which then read as a folder) and inside a folder the title had removed. The overlay may 361 // below a package file (which then read as a folder) and inside a folder the title had removed. The overlay may
362 // still lack a folder only the package has, so it is mirrored here, which the title cannot see. 362 // still lack a folder only the package has, so it is mirrored here, which the title cannot see.
363 if (!is_folder(r, parent_of(parts))) return fail(ERROR_PATH_NOT_FOUND); 363 // T:'s scratch folder is the exception: it creates its parent folders, as merged with RT-218.
364 const bool scratch = !parts.empty() && same_name(parts.front().c_str(), kScratchDir);
365 if (!scratch && !is_folder(r, parent_of(parts))) return fail(ERROR_PATH_NOT_FOUND);
364 366
365 Target t; 367 Target t;
366 t.path = join(r.overlay, parts); 368 t.path = join(r.overlay, parts);