mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Mark internal configuration options and sections with underscore
This commit is contained in:
parent
0bda1f4c16
commit
5371be2b39
12 changed files with 58 additions and 63 deletions
|
@ -125,7 +125,7 @@ class Storage(
|
|||
return os.path.join(filesystem_folder, "collection-root")
|
||||
|
||||
def _fsync(self, fd):
|
||||
if self.configuration.get("internal", "filesystem_fsync"):
|
||||
if self.configuration.get("_internal", "filesystem_fsync"):
|
||||
pathutils.fsync(fd)
|
||||
|
||||
def _sync_directory(self, path):
|
||||
|
@ -134,7 +134,7 @@ class Storage(
|
|||
This only works on POSIX and does nothing on other systems.
|
||||
|
||||
"""
|
||||
if not self.configuration.get("internal", "filesystem_fsync"):
|
||||
if not self.configuration.get("_internal", "filesystem_fsync"):
|
||||
return
|
||||
if os.name == "posix":
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue