mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix missing parent dir not handled corrently when uploading file
This commit is contained in:
parent
f1c42aef88
commit
715bfaa0ee
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class PutFileBinary {
|
|||
await fileRepo.putBinary(account, path, content);
|
||||
} catch (e) {
|
||||
if (e is ApiException &&
|
||||
e.response.statusCode == 404 &&
|
||||
(e.response.statusCode == 404 || e.response.statusCode == 409) &&
|
||||
shouldCreateMissingDir) {
|
||||
// no dir
|
||||
_log.info("[call] Auto creating parent dirs");
|
||||
|
|
Loading…
Reference in a new issue