Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active August 14, 2017 13:03
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/dcbc3578f1ed3513d53cb56f2b7b28e9 to your computer and use it in GitHub Desktop.
Save matthieu-D/dcbc3578f1ed3513d53cb56f2b7b28e9 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
import { File } from '@ionic-native/file';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
items;
savedParentNativeURLs = [];
constructor(public navCtrl: NavController, public fileNavigator: File, public plt: Platform) {
const ROOT_DIRECTORY = 'file:///';
plt.ready()
.then(() => {
this.listDir(ROOT_DIRECTORY, '');
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment