File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ Local
422
422
:param fileext: The file extension to use (e.g. ``.txt ``). Contained in the
423
423
href, so if you change the file extension after a sync, this will
424
424
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
426
426
to either use ``.vcf `` or ``.ics ``. Note that metasync won't work
427
427
if you use an empty string here.
428
428
:param encoding: File encoding for items, both content and filename.
Original file line number Diff line number Diff line change @@ -22,8 +22,15 @@ class FilesystemStorage(Storage):
22
22
storage_name = "filesystem"
23
23
_repr_attributes = ("path" ,)
24
24
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
+ ):
27
34
super ().__init__ (** kwargs )
28
35
path = expand_path (path )
29
36
checkdir (path , create = False )
@@ -82,8 +89,11 @@ def _get_href(self, ident):
82
89
def list (self ):
83
90
for fname in os .listdir (self .path ):
84
91
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
+ ):
87
97
yield fname , get_etag_from_file (fpath )
88
98
89
99
def get (self , href ):
You can’t perform that action at this time.
0 commit comments