Created
August 12, 2017 21:09
-
-
Save matthieu-D/15650eed843ec6734ea6519bd8507612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listRootDir = () => { | |
const ROOT_DIRECTORY = "file:///"; | |
(<any> window).resolveLocalFileSystemURL(ROOT_DIRECTORY, | |
(fileSystem) => { | |
var reader = fileSystem.createReader(); | |
reader.readEntries( | |
(entries) => { | |
this.ngZone.run(()=> { | |
this.items = entries; | |
}); | |
}, this.handleError); | |
}, this.handleError); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment