Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $window.requestFileSystem($window.LocalFileSystem.PERSISTENT, 0, function(fs) {
  2. console.log("fs", fs);
  3.  
  4. var directoryReader = fs.root.createReader();
  5.  
  6. directoryReader.readEntries(function(entries) {
  7. var arr = [];
  8. processEntries(entries, arr); // arr is pass by refrence
  9. $scope.files = arr;
  10. // $rootScope.hide();
  11. },
  12. function(error) {
  13. console.log(error);
  14. });
  15. },
  16. function(error) {
  17. console.log(error);
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement