mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
fix up2k folder-upload
This commit is contained in:
parent
75917b9f7c
commit
e3031bdeec
|
@ -581,8 +581,10 @@ class HttpCli(object):
|
||||||
if sub:
|
if sub:
|
||||||
try:
|
try:
|
||||||
dst = os.path.join(vfs.realpath, rem)
|
dst = os.path.join(vfs.realpath, rem)
|
||||||
os.makedirs(fsenc(dst))
|
if not os.path.isdir(fsenc(dst)):
|
||||||
|
os.makedirs(fsenc(dst))
|
||||||
except OSError as ex:
|
except OSError as ex:
|
||||||
|
self.log("makedirs failed [{}]".format(dst))
|
||||||
if ex.errno == 13:
|
if ex.errno == 13:
|
||||||
raise Pebkac(500, "the server OS denied write-access")
|
raise Pebkac(500, "the server OS denied write-access")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue