driftyco/ng-cordova — pull request #154 by alastairparagas (2014-08-03 10:16:10+00:00)
Title: readFileAbsolute and readFileMetadataAbsolute

readFileAbsolute and readFileMetadataAbsolute will provide exactly what readFile and readFileMetadata provides, except that they accept absolute file path locations (previous readFile and readFileMetadata methods only accepted relative file paths to which an absolute file path is added with filesystem.root).

Instead of using filesystem.root.getFile, we instead use window.resolveLocalFileSystemURI to resolve the absolute file path location's actual file using the provided absolute file path.

This is a cleaner implementation of pull request #154.