Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jones committed Jul 17, 2024
1 parent 8904338 commit aaad89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local_data
assets
.vscode/launch.json

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
3 changes: 3 additions & 0 deletions webdavclient/webdavclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ def download_files(
self.logger.info("The remote file url is: %s", remote_file_url)
sub_path = self.get_sub_path(file_path, global_remote_base_path)

if sub_path.endswith(decoded_filename):
sub_path = sub_path[: len(sub_path) - len(decoded_filename)]

if sub_path == decoded_filename:
sub_path = ""

Expand Down

0 comments on commit aaad89b

Please sign in to comment.