mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
parent
f99f3f8a6d
commit
8c7a24282c
@ -50,6 +50,7 @@ const api = null;
|
||||
// const items = response.items;
|
||||
// expect(items.length).toBe(3);
|
||||
// expect(items[0].path).toBe('1');
|
||||
// expect(items[0].updated_time).toMatch(/^\d+$/); // make sure it's using epoch timestamp
|
||||
// }));
|
||||
|
||||
// it('should default to only files on root directory', asyncTest(async () => {
|
||||
|
@ -145,10 +145,11 @@ class FileApiDriverAmazonS3 {
|
||||
|
||||
metadataToStat_(md, path) {
|
||||
const relativePath = basename(path);
|
||||
const lastModifiedDate = md['LastModified'] ? new Date(md['LastModified']) : new Date();
|
||||
|
||||
const output = {
|
||||
path: relativePath,
|
||||
updated_time: md['LastModified'] ? new Date(md['LastModified']) : new Date(),
|
||||
updated_time: lastModifiedDate.getTime(),
|
||||
isDeleted: !!md['DeleteMarker'],
|
||||
isDir: false,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user