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:
authorkotorvr <332716892+kotorvr@users.noreply.github.com>2026-11-22 22:07:59 +0000
committerkotorvr <332716892+kotorvr@users.noreply.github.com>2026-11-22 22:07:59 +0000
commit08fc8ec748e35bc79985cf040310a7898b5d694c (patch)
treeb377e26fe630447e68734543d69f5d81d4735743 /runtime/shims/file_system.cpp
parentf46e90310df7ecdcd414f4b3a1afa31e35272d5e (diff)
file_system: T: keeps creating its parent folders, as merged with RT-218
main's G:/T: drives (4c52ce27) made a T: create build its parent folders and pinned that in file_system_test. The folder-exists rule of this branch now applies to the package view (GAME:, G:) only, so that merged behaviour stands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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);