summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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