cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <>
Subject [GitHub] cordova-plugin-file-transfer pull request: CB-9969 Filetransfer up...
Date Thu, 26 Nov 2015 18:29:02 GMT
Github user daserge commented on a diff in the pull request:
    --- Diff: tests/tests.js ---
    @@ -450,7 +450,7 @@ exports.defineAutoTests = function () {
                             // check that there is no file
    -                        root.getFile(localFilePath, null, unexpectedCallbacks.fileSystemWin,
    +                        root.getFile(fileName, null, unexpectedCallbacks.fileSystemWin,
    --- End diff --
    Despite the fact that [the docs](
says it takes a relative or an absolute path (by the way I can't find any File plugin test
for an absolute path), the use of `localFilePath` (which is `file:///` on Android and `ms-appdata:///`
on Windows) causes a fail with `FileError.ENCODING_ERR = 5` instead of `FileError.NOT_FOUND_ERR
= 1`.
    Probably the absolute path should be absolute to the fs root like `/dir/file.txt` and
not a native path.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message