mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 14:18:43 +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.created = existing;
|
||||||
this.used_existing = true;
|
this.used_existing = true;
|
||||||
return {};
|
return await this.created.getSafeEntry();
|
||||||
} else {
|
} else {
|
||||||
throw APIError.create('item_with_same_name_exists', null, {
|
throw APIError.create('item_with_same_name_exists', null, {
|
||||||
entry_name: target_basename,
|
entry_name: target_basename,
|
||||||
|
Loading…
Reference in New Issue
Block a user