updating ctime to mtime as a creating time fallback for photos and videos
This commit is contained in:
parent
9f527fcab4
commit
72025c7002
@ -33,7 +33,7 @@ export class MetadataLoader {
|
|||||||
try {
|
try {
|
||||||
const stat = fs.statSync(fullPath);
|
const stat = fs.statSync(fullPath);
|
||||||
metadata.fileSize = stat.size;
|
metadata.fileSize = stat.size;
|
||||||
metadata.creationDate = stat.ctime.getTime();
|
metadata.creationDate = stat.mtime.getTime();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@ -94,7 +94,7 @@ export class MetadataLoader {
|
|||||||
try {
|
try {
|
||||||
const stat = fs.statSync(fullPath);
|
const stat = fs.statSync(fullPath);
|
||||||
metadata.fileSize = stat.size;
|
metadata.fileSize = stat.size;
|
||||||
metadata.creationDate = stat.ctime.getTime();
|
metadata.creationDate = stat.mtime.getTime();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user