diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/zen/cmds/wipe_cmd.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/zen/cmds/wipe_cmd.cpp b/src/zen/cmds/wipe_cmd.cpp index 9bf0c6f9e..269f95417 100644 --- a/src/zen/cmds/wipe_cmd.cpp +++ b/src/zen/cmds/wipe_cmd.cpp @@ -283,7 +283,18 @@ namespace { { DiscoveredItemCount++; } - if (!Content.FileNames.empty()) + if (Content.FileNames.empty()) + { + const std::filesystem::path ParentPath = Path / RelativeRoot; + bool KeepDirectory = RelativeRoot.empty(); + + bool Added = AddFoundDirectoryFunc(ParentPath, KeepDirectory); + if (Added) + { + ZEN_CONSOLE_VERBOSE("{} directory {}", KeepDirectory ? "Keeping" : "Removing", ParentPath); + } + } + else { DiscoveredItemCount += Content.FileNames.size(); |