658 self.otherssubdirs.append(dn) |
658 self.otherssubdirs.append(dn) |
659 |
659 |
660 # create hash value, if it doesn't have one |
660 # create hash value, if it doesn't have one |
661 if not self.pdata["HASH"][0]: |
661 if not self.pdata["HASH"][0]: |
662 hash = str(QCryptographicHash.hash( |
662 hash = str(QCryptographicHash.hash( |
663 QByteArray(self.ppath), QCryptographicHash.Sha1).toHex(), |
663 QByteArray(self.ppath.encode("utf-8")), |
|
664 QCryptographicHash.Sha1).toHex(), |
664 encoding="utf-8") |
665 encoding="utf-8") |
665 self.pdata["HASH"] = [hash] |
666 self.pdata["HASH"] = [hash] |
666 self.setDirty(True) |
667 self.setDirty(True) |
667 |
668 |
668 return res |
669 return res |