mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
feat(server): restore modified at timestamp after upload, preserve when copying (#7010)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user