cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Ginchereau (JIRA)" <>
Subject [jira] [Updated] (CB-6901) [WP8][cordova-plugin-file] filesystem: null after use IsolatedStorageFile.MoveDirectory
Date Thu, 05 Nov 2015 17:53:28 GMT


Jason Ginchereau updated CB-6901:
    Labels: WP8 Windows  (was: windows wp8)

> [WP8][cordova-plugin-file] filesystem: null after use IsolatedStorageFile.MoveDirectory
> ---------------------------------------------------------------------------------------
>                 Key: CB-6901
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.5.0
>         Environment: Windows 8.1
>            Reporter: Martin Gonzalez
>            Assignee: Jesse MacFadyen
>              Labels: WP8, Windows
>             Fix For: 3.6.0
> Using the File plugin, faced a problem trying to move a directory using the plugin, specifically
the moveTo (aka TransferTo on native) , I've found out that the problem is not that the directory
is not moved, the problem is that after this line is executed:
> isoFile.MoveDirectory(currentPath, newPath);
> The DispatchCommandResult sends the entry file with the CallbackID, but the problem is
that the information about the filesystem is missing.
> This situation it doesn't happen when isoFile.MoveFile(newPath), IsolatedStorageFile.CreateDirectory(path)
or IsolatedStorageFile.CreateFile(path) are used the filesystem information it remains with
those but not with MoveDirectory.
> During the 67 test and several others, it uses the filesystem information of the recent
moved directory to determine if the file exists, and when it gets to GeFileOrDirectory on
the options this is the array obtained:
> "[null,"file1","{\"create\":false}","File619232322"]"
> When Create or MoveFile:
> "["\/\/entry,move.dsp.srcDir","file1","{\"create\":false}","File619232322"]"
> From the JS side object:
> MoveDirectory:
> {"isFile":false, "isDirectory":true, "name" : "entry.move.dsp.dstDir", "filesystem":null,
> MoveFile:
> {"isFile":true, "isDirectory":false, "name" : "entry.move.dsp.dstDir", "filesystem":"<FileSystem:
persistent>", "nativeURL":null}
> That's the reason why some automated tests on the MoveTo section are failing.
> Tested on Windows Phone 8 and 8.1, emulator and device. Same behavior.

This message was sent by Atlassian JIRA

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

View raw message