Bladeren bron

Merge pull request #1707 from pbiering/mtime-check-location-change

Mtime check location change
Peter Bieringer 1 jaar geleden
bovenliggende
commit
809e35689b
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      CHANGELOG.md
  2. 1 1
      radicale/storage/multifilesystem/__init__.py

+ 1 - 1
CHANGELOG.md

@@ -5,7 +5,7 @@
 * Add: option [auth] type oauth2 by code migration from https://gitlab.mim-libre.fr/alphabet/radicale_oauth/-/blob/dev/oauth2/
 * Fix: catch OS errors on PUT MKCOL MKCALENDAR MOVE PROPPATCH (insufficient storage, access denied, internal server error)
 * Test: skip bcrypt related tests if module is missing
-* Improve: relax mtime check on storage filesystem
+* Improve: relax mtime check on storage filesystem, change test file location to "collection-root" directory
 
 ## 3.4.1
 * Add: option [auth] dovecot_connection_type / dovecot_host / dovecot_port

+ 1 - 1
radicale/storage/multifilesystem/__init__.py

@@ -94,7 +94,7 @@ class Storage(
 
     def _analyse_mtime(self):
         # calculate and display mtime resolution
-        path = os.path.join(self._filesystem_folder, ".Radicale.mtime_test")
+        path = os.path.join(self._get_collection_root_folder(), ".Radicale.mtime_test")
         logger.debug("Storage item mtime resolution test with file: %r", path)
         try:
             with open(path, "w") as f: