--- a/eric6/Utilities/FtpUtilities.py Mon Sep 23 19:10:42 2019 +0200 +++ b/eric6/Utilities/FtpUtilities.py Mon Sep 23 19:22:12 2019 +0200 @@ -59,8 +59,10 @@ @param line to check (string) @return flag indicating to ignore the line (boolean) """ - return line.strip() == "" or \ + return ( + line.strip() == "" or line.strip().lower().startswith("total ") + ) def __parseUnixMode(self, modeString, urlInfo): """ @@ -197,8 +199,9 @@ @param line directory line to be parsed (string) @return URL info object containing the valid data (E5UrlInfo) """ - modeString, nlink, user, group, size, month, day, \ - yearOrTime, name = self.__splitUnixLine(line) + modeString, nlink, user, group, size, month, day, yearOrTime, name = ( + self.__splitUnixLine(line) + ) if name in [".", ".."]: return None @@ -297,8 +300,9 @@ E5UrlInfo.ReadGroup | E5UrlInfo.WriteGroup | E5UrlInfo.ReadOther | E5UrlInfo.WriteOther) if ext in [".exe", ".com", ".bat", ".cmd"]: - permissions |= E5UrlInfo.ExeOwner | E5UrlInfo.ExeGroup | \ - E5UrlInfo.ExeOther + permissions |= ( + E5UrlInfo.ExeOwner | E5UrlInfo.ExeGroup | E5UrlInfo.ExeOther + ) urlInfo.setPermissions(permissions) return urlInfo