mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Make /storage/filesystem ignore .tmp files
Hardcode to ignore files with `.tmp` suffix as this is mentioned in the vdir specification.
This commit is contained in:
parent
804b9f0429
commit
439e63f8ea
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,8 @@ class FilesystemStorage(Storage):
|
|||
def list(self):
|
||||
for fname in os.listdir(self.path):
|
||||
fpath = os.path.join(self.path, fname)
|
||||
if os.path.isfile(fpath) and fname.endswith(self.fileext):
|
||||
if os.path.isfile(fpath) and fname.endswith(self.fileext) and (
|
||||
not fname.endswith('.tmp')):
|
||||
yield fname, get_etag_from_file(fpath)
|
||||
|
||||
def get(self, href):
|
||||
|
|
|
|||
Loading…
Reference in a new issue