mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Removed uneeded created_time property
This commit is contained in:
parent
78e5eaf1e2
commit
02ac0b8593
@ -42,7 +42,7 @@ class FileApiDriverLocal {
|
|||||||
metadataFromStat_(stat) {
|
metadataFromStat_(stat) {
|
||||||
return {
|
return {
|
||||||
path: stat.path,
|
path: stat.path,
|
||||||
created_time: stat.birthtime.getTime(),
|
// created_time: stat.birthtime.getTime(),
|
||||||
updated_time: stat.mtime.getTime(),
|
updated_time: stat.mtime.getTime(),
|
||||||
isDir: stat.isDirectory(),
|
isDir: stat.isDirectory(),
|
||||||
};
|
};
|
||||||
|
@ -39,7 +39,7 @@ class FileApiDriverMemory {
|
|||||||
path: path,
|
path: path,
|
||||||
isDir: isDir,
|
isDir: isDir,
|
||||||
updated_time: now, // In milliseconds!!
|
updated_time: now, // In milliseconds!!
|
||||||
created_time: now, // In milliseconds!!
|
// created_time: now, // In milliseconds!!
|
||||||
content: '',
|
content: '',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ class FileApiDriverOneDrive {
|
|||||||
if ('deleted' in odItem) {
|
if ('deleted' in odItem) {
|
||||||
output.isDeleted = true;
|
output.isDeleted = true;
|
||||||
} else {
|
} else {
|
||||||
output.created_time = moment(odItem.fileSystemInfo.createdDateTime, 'YYYY-MM-DDTHH:mm:ss.SSSZ').format('x');
|
// output.created_time = moment(odItem.fileSystemInfo.createdDateTime, 'YYYY-MM-DDTHH:mm:ss.SSSZ').format('x');
|
||||||
output.updated_time = moment(odItem.fileSystemInfo.lastModifiedDateTime, 'YYYY-MM-DDTHH:mm:ss.SSSZ').format('x');
|
output.updated_time = moment(odItem.fileSystemInfo.lastModifiedDateTime, 'YYYY-MM-DDTHH:mm:ss.SSSZ').format('x');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class FileApiDriverWebDav {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
path: path,
|
path: path,
|
||||||
created_time: lastModifiedDate.getTime(),
|
// created_time: lastModifiedDate.getTime(),
|
||||||
updated_time: lastModifiedDate.getTime(),
|
updated_time: lastModifiedDate.getTime(),
|
||||||
isDir: isCollection === '',
|
isDir: isCollection === '',
|
||||||
sizeDONOTUSE: sizeDONOTUSE, // This property is used only for the WebDAV PUT hack (see below) so mark it as such so that it can be removed with the hack later on.
|
sizeDONOTUSE: sizeDONOTUSE, // This property is used only for the WebDAV PUT hack (see below) so mark it as such so that it can be removed with the hack later on.
|
||||||
|
Loading…
Reference in New Issue
Block a user