apache/cordova-plugin-file — pull request #77 by martincgg (2014-08-28 22:33:33+00:00)
Title: [CB-7422][File Tests] Use proper fileSystem to create fullPath

The filesystem uses root filesystem (PERSISTENT) to compare with a TEMPORARY filesystem.
This is wrong, if TEMPORARY, var 'temp_root' should be used to assign value to fullPath.
Tested over android & WP8, everything OK.

This wasn't caught before, because android :
fullPath is: /file, and (root.fullPath + file) returns ---> /file.
although for Windows Phone: the fullPath provides the nativePath as /tmp//file, when it tries to compare with (root.fullPath + file) gives //file. But tmp_root.fullPath provides the right path: /tmp/ to compare with.

Android it doesn't provide any different fullPath property if temporary or persistent, the right path it's contained over the Native or Internal path.