fix for encryption

This commit is contained in:
fyears
2024-02-25 15:20:27 +08:00
parent 40020c3e44
commit 1f4737bfb8
9 changed files with 182 additions and 107 deletions
+6 -6
View File
@@ -32,20 +32,20 @@ export const getLocalEntityList = async (
);
}
r = {
key: entry.path,
keyEnc: entry.path,
key: entry.path, // local always unencrypted
keyRaw: entry.path,
mtimeCli: mtimeLocal,
mtimeSvr: mtimeLocal,
size: entry.stat.size,
sizeEnc: entry.stat.size,
size: entry.stat.size, // local always unencrypted
sizeRaw: entry.stat.size,
};
} else if (entry instanceof TFolder) {
key = `${entry.path}/`;
r = {
key: key,
keyEnc: key,
keyRaw: key,
size: 0,
sizeEnc: 0,
sizeRaw: 0,
};
} else {
throw Error(`unexpected ${entry}`);