feat(server): restore modified at timestamp after upload, preserve when copying (#7010)

This commit is contained in:
Trevor Jex
2024-02-11 21:40:34 -07:00
committed by GitHub
parent 0c4df216d7
commit d7437d31d1
7 changed files with 49 additions and 3 deletions

View File

@@ -222,6 +222,9 @@ export class StorageCore {
return;
}
const { atime, mtime } = await this.repository.stat(move.oldPath);
await this.repository.utimes(newPath, atime, mtime);
try {
await this.repository.unlink(move.oldPath);
} catch (error: any) {