Skip to content

Commit

Permalink
fix: upload fail with empty file list
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Nov 16, 2024
1 parent f63254e commit 6e634ce
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions dokuWikiUploader/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,15 @@ def upload(args: dict):
print(f"File {file_in_item['name']} already exists in {identifier_remote}.")
print(f"Uploading {len(filedict)} files...")
print(md_init)
r = item.upload(
files=filedict,
metadata=md_init,
access_key=access_key,
secret_key=secret_key,
verbose=True,
queue_derive=False,
)
if filedict:
item.upload(
files=filedict,
metadata=md_init,
access_key=access_key,
secret_key=secret_key,
verbose=True,
queue_derive=False,
)
print(f"Uploading {len(filedict)} files: Done.\n")


Expand Down

0 comments on commit 6e634ce

Please sign in to comment.