mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 06:00:21 +08:00
fix: empty response when mkdir is a no-op
This commit is contained in:
parent
807c3ba5ec
commit
f359ae193e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user