61 |
61 |
62 @param line to check (string) |
62 @param line to check (string) |
63 @return flag indicating to ignore the line (boolean) |
63 @return flag indicating to ignore the line (boolean) |
64 """ |
64 """ |
65 return line.strip() == "" or \ |
65 return line.strip() == "" or \ |
66 line.strip().lower().startswith("total ") |
66 line.strip().lower().startswith("total ") |
67 |
67 |
68 def __parseUnixMode(self, modeString, urlInfo): |
68 def __parseUnixMode(self, modeString, urlInfo): |
69 """ |
69 """ |
70 Private method to parse a Unix mode string modifying the |
70 Private method to parse a Unix mode string modifying the |
71 given URL info object. |
71 given URL info object. |
199 |
199 |
200 @param line directory line to be parsed (string) |
200 @param line directory line to be parsed (string) |
201 @return URL info object containing the valid data (E5UrlInfo) |
201 @return URL info object containing the valid data (E5UrlInfo) |
202 """ |
202 """ |
203 modeString, nlink, user, group, size, month, day, \ |
203 modeString, nlink, user, group, size, month, day, \ |
204 yearOrTime, name = self.__splitUnixLine(line) |
204 yearOrTime, name = self.__splitUnixLine(line) |
205 |
205 |
206 if name in [".", ".."]: |
206 if name in [".", ".."]: |
207 return None |
207 return None |
208 |
208 |
209 urlInfo = E5UrlInfo() |
209 urlInfo = E5UrlInfo() |