Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9DADD200C2C for ; Fri, 3 Mar 2017 20:18:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9C3F5160B5E; Fri, 3 Mar 2017 19:18:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E6D0B160B81 for ; Fri, 3 Mar 2017 20:18:49 +0100 (CET) Received: (qmail 35125 invoked by uid 500); 3 Mar 2017 19:18:49 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 35114 invoked by uid 99); 3 Mar 2017 19:18:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 19:18:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8B2EBCB1D6 for ; Fri, 3 Mar 2017 19:18:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id i0GtXb1xonFv for ; Fri, 3 Mar 2017 19:18:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 545715FE44 for ; Fri, 3 Mar 2017 19:18:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 52D9BE095A for ; Fri, 3 Mar 2017 19:18:46 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id ADB5724166 for ; Fri, 3 Mar 2017 19:18:45 +0000 (UTC) Date: Fri, 3 Mar 2017 19:18:45 +0000 (UTC) From: "Jesse MacFadyen (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-6901) [WP8][cordova-plugin-file] filesystem: null after use IsolatedStorageFile.MoveDirectory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Mar 2017 19:18:50 -0000 [ https://issues.apache.org/jira/browse/CB-6901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-6901. --------------------------------- Resolution: Won't Fix WP8 is deprecated, focusing on windows-uwp going forwards. > [WP8][cordova-plugin-file] filesystem: null after use IsolatedStorageFile.MoveDirectory > --------------------------------------------------------------------------------------- > > Key: CB-6901 > URL: https://issues.apache.org/jira/browse/CB-6901 > 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 > 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: > https://github.com/apache/cordova-plugin-file/blob/master/src/wp/File.cs#L1412 > 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, "nativeURL":null} > MoveFile: > {"isFile":true, "isDirectory":false, "name" : "entry.move.dsp.dstDir", "filesystem":"", "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 (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org