File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments