File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ def getmeta(self, namespace="standard"):
741741 read_only `True` if this filesystem is read only.
742742 supports_rename `True` if this filesystem supports an
743743 `os.rename` operation.
744+ supports_mtime `True` if this filesystem supports a native
745+ operation to retreive the "last modified" time.
744746 =================== ============================================
745747
746748 Most builtin filesystems will provide all these keys, and third-
Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ def getmeta(self, namespace="standard"):
707707 if namespace == "standard" :
708708 _meta = self ._meta .copy ()
709709 _meta ["unicode_paths" ] = "UTF8" in self .features
710+ _meta ["supports_mtime" ] = "MDTM" in self .features
710711 return _meta
711712
712713 def listdir (self , path ):
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def __init__(
144144 "network" : False ,
145145 "read_only" : False ,
146146 "supports_rename" : True ,
147+ "supports_mtime" : True ,
147148 "thread_safe" : True ,
148149 "unicode_paths" : os .path .supports_unicode_filenames ,
149150 "virtual" : False ,
You can’t perform that action at this time.
0 commit comments