GitHub user vladimir-kotikov opened a pull request: https://github.com/apache/cordova-plugin-file/pull/67
CB-7284 Improve File plugin for windows platform compatibility with current API specs Fixes multiple spec tests errors (CB-7284)[https://issues.apache.org/jira/browse/CB-7284]: Full list of changes: FileProxy: * Adds removal of trailing slashes for incoming native paths since Windows threat them as illegal * Combine getMetadata and getFileMetadata into one method (this fixes multiple metadata spec tests) * Adds private routine for creating Filesystem instance for Entry from full path to Entry (getFilesystemFromPath) * Adds filesystem parameter specification for all constructed instances of Entry, FileEntry and DirectoryEntry classes * Fixes readAsBinaryString method to return true binary string instead of unicode string * Adds support for slicing to readAsBinaryString and readAsArrayBuffer methods * Fix removeRecursively method to disallow root directory removal * Remove multiple usages of createFileQuery and createFolderQuery which is unsupported on Windows Phone 8.1 DirectoryEntry: * Adds additional check for nativeURL is not undefined/null in DirectoryEntry constructor Entry: * Update copyTo and MoveTo methods with proper usage of entry.filesystem in success callbacks (was entry.filesystemName earlier, but Entry class don't have filesystemName property) resolveLocalFileSystemURI: * Update resolveLocalFileSystemURL method with proper usage of entry.filesystem in success callbacks (was entry.filesystemName earlier, but Entry class don't have filesystemName property) * Adds additional check for leading slash in provided path at resolveLocalFileSystemURL method (since failure of file.spec.12 window.resolveLocalFileSystemURI should error (ENCODING_ERR) when resolving invalid URI with leading /.) This also includes fix for getMetadata method from https://github.com/apache/cordova-plugin-file/pull/56 You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-plugin-file CB-7284 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-file/pull/67.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #67 ---- commit 0ffb96988c0539222887f7756a653e7f0a1ed12c Author: Vladimir Kotikov <v-vlk...@microsoft.com> Date: 2014-08-11T11:33:36Z Fixes multiple mobilespec tests errors commit 700c3d8d8348a460640847303199025b4e1b6a25 Author: Vladimir Kotikov <v-vlk...@microsoft.com> Date: 2014-08-11T12:56:06Z Adds Windows platform ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---