Skip to content

Commit

Permalink
add subsub folders. tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
takotab committed Apr 2, 2019
1 parent 1cb43c8 commit 9dfa46b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudfile/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def restore(cloudf: CloudFile = None, hard=False):
for dir, url in cloudf.items():
path_to = get_path_to(dir)
if not os.path.isdir(path_to):
os.mkdir(path_to)
os.makedirs(path_to)
if not os.path.isfile(dir) or hard:
download(dir, url)
else:
Expand Down
1 change: 1 addition & 0 deletions tests/test_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
cloudfile_dct = {
"foo/bar.txt": "https://docs.google.com/document/d/1yfcBYMKzaBsUsLmuoitqT8spXGVKiiGo9MxJ8eBjNgM/export?format=txt",
"foo/foo2/bar2.txt": "https://docs.google.com/document/d/1KQNXOMEqzEl9D5IAyzecj_CiCphobEdaou9oNhzOZgg/export?format=txt",
"foo/foo1/foo_dir/bar.csv": "https://google.com",
}


Expand Down

0 comments on commit 9dfa46b

Please sign in to comment.