File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -712,8 +712,6 @@ def getmodified(self, path):
712712 it might only have limited accuracy.
713713
714714 """
715- if self .getmeta ().get ("supports_mtime" , False ):
716- return self .getinfo (path , namespaces = ["modified" ]).modified
717715 return self .getinfo (path , namespaces = ["details" ]).modified
718716
719717 def getmeta (self , namespace = "standard" ):
@@ -753,8 +751,6 @@ def getmeta(self, namespace="standard"):
753751 read_only `True` if this filesystem is read only.
754752 supports_rename `True` if this filesystem supports an
755753 `os.rename` operation.
756- supports_mtime `True` if this filesystem supports a native
757- operation to retrieve the "last modified" time.
758754 =================== ============================================
759755
760756 Most builtin filesystems will provide all these keys, and third-
Original file line number Diff line number Diff line change @@ -317,9 +317,9 @@ def modified(self):
317317 namespace is not in the Info.
318318
319319 """
320- namespace = "modified" if self .has_namespace ( "modified" ) else " details"
321- self ._require_namespace ( namespace )
322- return self . _make_datetime ( self . get ( namespace , "modified" ))
320+ self ._require_namespace ( " details")
321+ _time = self ._make_datetime ( self . get ( "details" , "modified" ) )
322+ return _time
323323
324324 @property
325325 def created (self ):
Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ def __init__(
145145 "network" : False ,
146146 "read_only" : False ,
147147 "supports_rename" : True ,
148- "supports_mtime" : False ,
149148 "thread_safe" : True ,
150149 "unicode_paths" : os .path .supports_unicode_filenames ,
151150 "virtual" : False ,
You can’t perform that action at this time.
0 commit comments