mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-30 21:26:02 +00:00
Cross-platform fix for #1147.
This commit is contained in:
parent
8dd4d2f094
commit
a065f95075
@ -34,7 +34,6 @@
|
||||
#
|
||||
|
||||
import os
|
||||
import pwd
|
||||
import time
|
||||
import locale
|
||||
import shutil
|
||||
@ -165,9 +164,7 @@ class Upload(resource.Resource):
|
||||
'files': []
|
||||
})
|
||||
|
||||
tempdir = os.path.join(tempfile.gettempdir(), "delugeweb-%s" % pwd.getpwuid(os.getuid()).pw_name)
|
||||
if not os.path.isdir(tempdir):
|
||||
os.mkdir(tempdir)
|
||||
tempdir = tempfile.mkdtemp(prefix="delugeweb-")
|
||||
|
||||
filenames = []
|
||||
for upload in request.args.get("file"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user