[
https://issues.apache.org/jira/browse/CB-12112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15676195#comment-15676195
]
ASF GitHub Bot commented on CB-12112:
-------------------------------------
GitHub user matrosov-nikita opened a pull request:
https://github.com/apache/cordova-plugin-file/pull/198
CB-12112 windows: Make available to move folder trees
<!--
Please make sure the checklist boxes are all checked before submitting the
PR. The checklist
is intended as a quick reference, for complete details please see our
Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
-->
### Platforms affected
Windows
### What does this PR do?
There was a mistake in the logic of recursive function for moving
operation. As for destination folder, it was always used start folder.
### What testing has been done on this change?
Auto-test
### Checklist
- [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html)
in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [x] Added automated test coverage as appropriate for this change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/matrosov-nikita/cordova-plugin-file CB-12112
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-file/pull/198.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 #198
----
commit 1bbd7997fea0bbffce989bcb6b12d96cf66c993d
Author: Nikita Matrosov <[email protected]>
Date: 2016-11-18T08:50:20Z
CB-12112 windows: Make available to move folder trees
There was a mistake in the logic of recursive function for moving
operation. As for destination folder, it was always used start folder.
----
> moveFolder function in UWP fails for folder trees with depth greater than 1
> ---------------------------------------------------------------------------
>
> Key: CB-12112
> URL: https://issues.apache.org/jira/browse/CB-12112
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File, Windows
> Affects Versions: 3.5.0
> Environment: Universal windows
> Reporter: Chris Redhead
> Priority: Minor
>
> The moveFolder function works incorrectly in UWP for folder trees with depth
> greater than 1.
> The recursion does not work as expected so all files and folders end up in
> the new directory
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]