Skip to content

Commit c6d34bf

Browse files
committed
iterate on get functionality
1 parent 1e99876 commit c6d34bf

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/contents.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,6 @@ export class Drive implements Contents.IDrive {
191191
relativePath = localPath;
192192
}
193193

194-
data = {
195-
name: PathExt.basename(localPath),
196-
path: PathExt.basename(localPath),
197-
last_modified: '',
198-
created: '',
199-
content: [],
200-
format: 'json',
201-
mimetype: '',
202-
size: undefined,
203-
writable: true,
204-
type: 'directory'
205-
};
206194
// extract current drive name
207195
const currentDrive = this.drivesList.filter(x => x.name === localPath)[0];
208196
// when accessed the first time, mount drive
@@ -217,6 +205,19 @@ export class Drive implements Contents.IDrive {
217205
console.error(response.message);
218206
}
219207
}
208+
209+
data = {
210+
name: PathExt.basename(localPath),
211+
path: PathExt.basename(localPath),
212+
last_modified: '',
213+
created: '',
214+
content: [],
215+
format: 'json',
216+
mimetype: '',
217+
size: undefined,
218+
writable: true,
219+
type: 'directory'
220+
};
220221
} else {
221222
const drivesList: Contents.IModel[] = [];
222223
for (const drive of this._drivesList) {

0 commit comments

Comments
 (0)