File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,6 +537,10 @@ def getmeta(self, namespace="standard"):
537537 os.rename operation.
538538 =================== ============================================
539539
540+ Most builtin filesystems will provide all these keys, and third-
541+ party filesystems should do so whenever possible. A key may not
542+ be present if there is no way to know the value.
543+
540544 .. note::
541545 Meta information is constant for the lifetime of the
542546 filesystem, and may be cached.
Original file line number Diff line number Diff line change @@ -279,7 +279,6 @@ class FTPFS(FS):
279279 """
280280
281281 _meta = {
282- 'case_insensitive' : False ,
283282 'invalid_path_chars' : '\0 ' ,
284283 'network' : True ,
285284 'read_only' : False ,
Original file line number Diff line number Diff line change @@ -1747,9 +1747,12 @@ def test_unicode_path(self):
17471747
17481748
17491749 def test_case_sensitive (self ):
1750- if self .fs .getmeta ().get ('case_insensitive' , False ):
1751- self .skipTest ('the filesystem is not case sensitive.' )
1750+ meta = self .fs .getmeta ()
1751+ if 'case_insensitive' not in meta :
1752+ self .skipTest ('case sensitivity not known' )
17521753
1754+ if meta .get ('case_insensitive' , False ):
1755+ self .skipTest ('the filesystem is not case sensitive.' )
17531756
17541757 self .fs .makedir ('foo' )
17551758 self .fs .makedir ('Foo' )
You can’t perform that action at this time.
0 commit comments