Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object
- _error: FileError
- _error: FileError
- code: 5
- __proto__: FileError
- _localURL: "cdvfile://localhost/temporary/cdv_photo_071.jpg"
- _readyState: 2
- _realReader: FileReader
- _result: null
- __proto__: Object
- filesystem.root.getFile(filePath, {create: false},
- function (fileEntry) {
- console.log("we got root and we are grabbing the file!");
- fileEntry.file(function (file) {
- console.log(file); // contents listed below
- var reader = new FileReader();
- reader.onloadend = function () {
- console.log("we have finished reading the file");
- console.log(this); // this returns null
- q.resolve(reader.result);
- };
- reader.readAsText(file);
- });
- },
- // error
- function (error) {
- console.log(error);
- q.reject(error);
- });
- end: 7905
- lastModified: 1414148946000
- lastModifiedDate: 1414148946000
- localURL: "cdvfile://localhost/temporary/cdv_photo_071.jpg"
- name: "cdv_photo_071.jpg"
- size: 7905
- start: 0
- type: null
- Object
- name: "temporary"
- root: Object
- filesystem: Object
- fullPath: "/"
- isDirectory: true
- isFile: false
- name: "/"
- nativeURL: "file:///var/mobile/Containers/Data/Application/416D01DC-6586-4EEE-9536-DDCF33707D38/tmp/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement