Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. Object
  2. _error: FileError
  3. _error: FileError
  4. code: 5
  5. __proto__: FileError
  6. _localURL: "cdvfile://localhost/temporary/cdv_photo_071.jpg"
  7. _readyState: 2
  8. _realReader: FileReader
  9. _result: null
  10. __proto__: Object
  11.  
  12. filesystem.root.getFile(filePath, {create: false},
  13.  
  14. function (fileEntry) {
  15. console.log("we got root and we are grabbing the file!");
  16. fileEntry.file(function (file) {
  17. console.log(file); // contents listed below
  18. var reader = new FileReader();
  19. reader.onloadend = function () {
  20. console.log("we have finished reading the file");
  21. console.log(this); // this returns null
  22. q.resolve(reader.result);
  23. };
  24.  
  25. reader.readAsText(file);
  26. });
  27. },
  28. // error
  29. function (error) {
  30. console.log(error);
  31. q.reject(error);
  32. });
  33.  
  34. end: 7905
  35. lastModified: 1414148946000
  36. lastModifiedDate: 1414148946000
  37. localURL: "cdvfile://localhost/temporary/cdv_photo_071.jpg"
  38. name: "cdv_photo_071.jpg"
  39. size: 7905
  40. start: 0
  41. type: null
  42.  
  43. Object
  44. name: "temporary"
  45. root: Object
  46. filesystem: Object
  47. fullPath: "/"
  48. isDirectory: true
  49. isFile: false
  50. name: "/"
  51. nativeURL: "file:///var/mobile/Containers/Data/Application/416D01DC-6586-4EEE-9536-DDCF33707D38/tmp/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement