File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 12
12
import socket
13
13
import threading
14
14
import typing
15
- import warnings
16
15
from collections import OrderedDict
17
16
from contextlib import contextmanager
18
17
from ftplib import FTP
19
18
20
-
21
19
try :
22
20
from ftplib import FTP_TLS
23
21
except ImportError as err :
@@ -705,7 +703,7 @@ def getmeta(self, namespace="standard"):
705
703
return _meta
706
704
707
705
def getmodified (self , path ):
708
- # type: (Text) -> Optional[datetime]
706
+ # type: (Text) -> Optional[datetime.datetime ]
709
707
if self .supports_mdtm :
710
708
_path = self .validatepath (path )
711
709
with self ._lock :
@@ -714,7 +712,7 @@ def getmodified(self, path):
714
712
response = self .ftp .sendcmd (cmd )
715
713
mtime = self ._parse_ftp_time (response .split ()[1 ])
716
714
return epoch_to_datetime (mtime )
717
- return super ().getmodified (self , path )
715
+ return super (FTPFS , self ).getmodified (path )
718
716
719
717
def listdir (self , path ):
720
718
# type: (Text) -> List[Text]
You can’t perform that action at this time.
0 commit comments