mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Multi-platform fix for #1147.
This commit is contained in:
parent
3791fe2d2f
commit
8e5f8bb249
1 changed files with 1 additions and 4 deletions
|
@ -34,7 +34,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pwd
|
|
||||||
import time
|
import time
|
||||||
import locale
|
import locale
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -165,9 +164,7 @@ class Upload(resource.Resource):
|
||||||
'files': []
|
'files': []
|
||||||
})
|
})
|
||||||
|
|
||||||
tempdir = os.path.join(tempfile.gettempdir(), "delugeweb-%s" % pwd.getpwuid(os.getuid()).pw_name)
|
tempdir = tempfile.mkdtemp(prefix="delugeweb-")
|
||||||
if not os.path.isdir(tempdir):
|
|
||||||
os.mkdir(tempdir)
|
|
||||||
|
|
||||||
filenames = []
|
filenames = []
|
||||||
for upload in request.args.get("file"):
|
for upload in request.args.get("file"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue