Skip to content

Commit

Permalink
[#62] fixing script to sync notebooks to hydroshare
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Apr 17, 2024
1 parent e949803 commit 09ead74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/sync_notebooks_to_hydroshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
for root, directories, files in os.walk("."):
root = root[2:]
file_paths = [os.path.join(root, f) for f in files if f[0] != "." and f.endswith(".ipynb")]
if not res.file(folder=root):
if root and not res.file(folder=root):
res.folder_create(root)
res.file_upload(*file_paths, destination_path=root)
break

0 comments on commit 09ead74

Please sign in to comment.