Utilities/FtpUtilities.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
63 63
64 @param line to check (string) 64 @param line to check (string)
65 @return flag indicating to ignore the line (boolean) 65 @return flag indicating to ignore the line (boolean)
66 """ 66 """
67 return line.strip() == "" or \ 67 return line.strip() == "" or \
68 line.strip().lower().startswith("total ") 68 line.strip().lower().startswith("total ")
69 69
70 def __parseUnixMode(self, modeString, urlInfo): 70 def __parseUnixMode(self, modeString, urlInfo):
71 """ 71 """
72 Private method to parse a Unix mode string modifying the 72 Private method to parse a Unix mode string modifying the
73 given URL info object. 73 given URL info object.
201 201
202 @param line directory line to be parsed (string) 202 @param line directory line to be parsed (string)
203 @return URL info object containing the valid data (E5UrlInfo) 203 @return URL info object containing the valid data (E5UrlInfo)
204 """ 204 """
205 modeString, nlink, user, group, size, month, day, \ 205 modeString, nlink, user, group, size, month, day, \
206 yearOrTime, name = self.__splitUnixLine(line) 206 yearOrTime, name = self.__splitUnixLine(line)
207 207
208 if name in [".", ".."]: 208 if name in [".", ".."]:
209 return None 209 return None
210 210
211 urlInfo = E5UrlInfo() 211 urlInfo = E5UrlInfo()

eric ide

mercurial