Skip to content

Commit e4f244c

Browse files
committed
omitted case_insensitive flag from ftp meta
1 parent abde202 commit e4f244c

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

fs/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

fs/ftpfs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

fs/test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)