mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
fix #1147 in trunk as well
This commit is contained in:
parent
a011d6d659
commit
6d4cf138c8
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import pwd
|
||||||
import time
|
import time
|
||||||
import locale
|
import locale
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -164,7 +165,7 @@ class Upload(resource.Resource):
|
||||||
'files': []
|
'files': []
|
||||||
})
|
})
|
||||||
|
|
||||||
tempdir = os.path.join(tempfile.gettempdir(), "delugeweb")
|
tempdir = os.path.join(tempfile.gettempdir(), "delugeweb-%s" % pwd.getpwuid(os.getuid()).pw_name)
|
||||||
if not os.path.isdir(tempdir):
|
if not os.path.isdir(tempdir):
|
||||||
os.mkdir(tempdir)
|
os.mkdir(tempdir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue