Skip to content

Commit

Permalink
fix: add vendor for polybox storage (#604)
Browse files Browse the repository at this point in the history
Co-authored-by: Flora Thiebaut <[email protected]>
  • Loading branch information
olevski and leafty authored Jan 20, 2025
1 parent d69ba31 commit e27a7d0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_manifest_patch(
return patches

def config_string(self, name: str) -> str:
"""Convert configuration oblect to string representation.
"""Convert configuration object to string representation.
Needed to create RClone compatible INI files.
"""
Expand All @@ -233,6 +233,10 @@ def config_string(self, name: str) -> str:
if storage_type == "polybox" or storage_type == "switchDrive":
self.configuration["type"] = "webdav"
self.configuration["provider"] = ""
# NOTE: Without the vendor field mounting storage and editing files results in the modification
# time for touched files to be temporarily set to `1999-09-04` which causes the text
# editor to complain that the file has changed and whether it should overwrite new changes.
self.configuration["vendor"] = "owncloud"

if access == "shared" and storage_type == "polybox":
self.configuration["url"] = "https://polybox.ethz.ch/public.php/webdav/"
Expand Down

0 comments on commit e27a7d0

Please sign in to comment.