Skip to content

Commit b9f5d88

Browse files
Fixing docs/config.rst and code formatting
1 parent 9a1582c commit b9f5d88

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ Local
422422
:param fileext: The file extension to use (e.g. ``.txt``). Contained in the
423423
href, so if you change the file extension after a sync, this will
424424
trigger a re-download of everything (but *should* not cause data-loss
425-
of any kind). To be compatible with the ``vset to the empty string`` format you have
425+
of any kind). To be compatible with the ``vset`` format you have
426426
to either use ``.vcf`` or ``.ics``. Note that metasync won't work
427427
if you use an empty string here.
428428
:param encoding: File encoding for items, both content and filename.

vdirsyncer/storage/filesystem.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ class FilesystemStorage(Storage):
2222
storage_name = "filesystem"
2323
_repr_attributes = ("path",)
2424

25-
def __init__(self, path, fileext,
26-
encoding="utf-8", post_hook=None, fileignoreext=".tmp", **kwargs):
25+
def __init__(
26+
self,
27+
path,
28+
fileext,
29+
encoding="utf-8",
30+
post_hook=None,
31+
fileignoreext=".tmp",
32+
**kwargs
33+
):
2734
super().__init__(**kwargs)
2835
path = expand_path(path)
2936
checkdir(path, create=False)
@@ -82,8 +89,11 @@ def _get_href(self, ident):
8289
def list(self):
8390
for fname in os.listdir(self.path):
8491
fpath = os.path.join(self.path, fname)
85-
if os.path.isfile(fpath) and fname.endswith(self.fileext) and (
86-
not fname.endswith(self.fileignoreext)):
92+
if (
93+
os.path.isfile(fpath)
94+
and fname.endswith(self.fileext)
95+
and (not fname.endswith(self.fileignoreext))
96+
):
8797
yield fname, get_etag_from_file(fpath)
8898

8999
def get(self, href):

0 commit comments

Comments
 (0)