Skip to content

Commit 153ef25

Browse files
authored
Merge pull request #90 from hydroshare/fix-retrieve-file
Returning file downloaded path
2 parents a75f2c1 + 6be504a commit 153ef25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hsclient/hydroshare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ def retrieve_string(self, path):
13621362

13631363
def retrieve_file(self, path, save_path=""):
13641364
file = self.get(path, status_code=200, allow_redirects=True)
1365-
self.write_file(path, file.content, save_path)
1365+
return self.write_file(path, file.content, save_path)
13661366

13671367
def retrieve_bag(self, path, save_path=""):
13681368
print(f"Retrieving {path}")

0 commit comments

Comments
 (0)