From 207e6e2a2ead50fdc030f60a015222c9f3b27f85 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Sun, 3 Dec 2017 18:30:17 +0000 Subject: [PATCH] fix the fetched file name --- ipfs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipfs b/ipfs index ade8703..15c20be 100755 --- a/ipfs +++ b/ipfs @@ -124,6 +124,9 @@ class IPFS_method(): os.chdir(os.path.dirname(filename)) try: ipfs.get(ipfs_file_path) + os.rename( + os.path.basename(ipfs_file_path), + filename) finally: os.chdir(cwd)