Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 12, 2017 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/15650eed843ec6734ea6519bd8507612 to your computer and use it in GitHub Desktop.
Save matthieu-D/15650eed843ec6734ea6519bd8507612 to your computer and use it in GitHub Desktop.
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