summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-11-09 18:30:39 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-11-09 18:30:39 +0100
commit7c60034b9823d3b751900c5360c629b44d5572b7 (patch)
treefa0ce6471149faa3178536518e0882a4e6b2e6c1 /fb.py
parent64d1ded5bf1e86c896a4520626df1a7628203e16 (diff)
Save temp file in tempdir
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
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