[bug] Windows-to-Linux remote mount is allowing directory rename when directory is not empty #47
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-04-16 14:36:12 -05:00
parent 1153598c62
commit 6945a16f78
3 changed files with 2 additions and 19 deletions

View File

@ -85,9 +85,6 @@ auto traverse_directory(
struct dirent *de{nullptr};
while (res && (de = readdir(root)) && !is_stop_requested()) {
repertory::utils::error::handle_debug(
function_name,
fmt::format("item|{}|type|{}|{}", de->d_name, de->d_type, DT_DIR));
if (de->d_type == DT_DIR) {
if ((std::string_view(de->d_name) == ".") ||
(std::string_view(de->d_name) == "..")) {