mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 14:16:08 -06:00
make sure tmpdir exists prior running a restoration (fix #315)
This commit is contained in:
parent
3bfc6c653d
commit
70d9a25efe
1 changed files with 2 additions and 0 deletions
|
|
@ -901,6 +901,8 @@ class Burp(BUIbackend):
|
|||
flist = json.loads(files)
|
||||
if password:
|
||||
tmphandler, tmpfile = tempfile.mkstemp()
|
||||
if not os.path.exists(self.tmpdir):
|
||||
os.makedirs(self.tmpdir)
|
||||
tmpdir = tempfile.mkdtemp(dir=self.tmpdir)
|
||||
if 'restore' not in flist:
|
||||
return None, 'Wrong call'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue