diff options
Diffstat (limited to 'runtime/shims/file_system.cpp')
| -rw-r--r-- | runtime/shims/file_system.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/shims/file_system.cpp b/runtime/shims/file_system.cpp index 38c3194fe..f0ae08811 100644 --- a/runtime/shims/file_system.cpp +++ b/runtime/shims/file_system.cpp | |||
| @@ -142,7 +142,9 @@ std::filesystem::path marker(const std::filesystem::path& overlay, const std::ve | |||
| 142 | bool deleted(const std::filesystem::path& overlay, const std::vector<std::wstring>& parts) { | 142 | bool deleted(const std::filesystem::path& overlay, const std::vector<std::wstring>& parts) { |
| 143 | if (overlay.empty() || parts.empty()) return false; | 143 | if (overlay.empty() || parts.empty()) return false; |
| 144 | std::error_code ec; | 144 | std::error_code ec; |
| 145 | return std::filesystem::exists(marker(overlay, parts), ec); | 145 | // Only regular files are deletion markers; parent directories inside .gta6rt-deleted/ exist only to hold markers |
| 146 | // for nested deleted files and must not hide the corresponding ancestor directories in the package. | ||
| 147 | return std::filesystem::is_regular_file(marker(overlay, parts), ec); | ||
| 146 | } | 148 | } |
| 147 | 149 | ||
| 148 | Target read_target(const std::wstring& path) { | 150 | Target read_target(const std::wstring& path) { |