From 7c60034b9823d3b751900c5360c629b44d5572b7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Nov 2015 18:30:39 +0100 Subject: Save temp file in tempdir Signed-off-by: Florian Pritz --- fb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb.py b/fb.py index cc62f50..a27ed76 100755 --- a/fb.py +++ b/fb.py @@ -573,7 +573,7 @@ class FBClient: def dl_file(self, arg): if re.match('https?://', arg): - outfile = os.path.basename(arg) + outfile = os.path.join(self.tempdir, os.path.basename(arg)) self.curlw.dl_file(arg, outfile) return outfile -- cgit v1.2.3-24-g4f1b