Browse Source

fix: empty response when mkdir is a no-op

KernelDeimos 4 months ago
parent
commit
f359ae193e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/backend/src/filesystem/hl_operations/hl_mkdir.js

+ 1 - 1
src/backend/src/filesystem/hl_operations/hl_mkdir.js

@@ -331,7 +331,7 @@ class HLMkdir extends HLFilesystemOperation {
                 }
                 this.created = existing;
                 this.used_existing = true;
-                return {};
+                return await this.created.getSafeEntry();
             } else {
                 throw APIError.create('item_with_same_name_exists', null, {
                     entry_name: target_basename,