Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4514

The method copyTo of DirectoryEntry doesn't copy recursively on Android

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0, 3.0.0
    • None
    • None

    Description

      the method copyTo of DirectoryEntry doesn´t copy a directory inside another directory.

      I would suggest change FileUtils.java

      in line 496

      for (File file : srcDir.listFiles()) {
      if (file.isDirectory()) {
      //copyDirectory(file, destinationDir);
      copyDirectory(file, new File(destinationDir.getAbsolutePath() + File.separator + file.getName()));

      Attachments

        Activity

          Commit 995270e1f1078cf313aa1d17a09472b399f4f909 in branch refs/heads/dev from bowserj
          [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=995270e ]

          CB-4514: Making DirectoryCopy Recursive

          jira-bot ASF subversion and git services added a comment - Commit 995270e1f1078cf313aa1d17a09472b399f4f909 in branch refs/heads/dev from bowserj [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=995270e ] CB-4514 : Making DirectoryCopy Recursive

          Commit 995270e1f1078cf313aa1d17a09472b399f4f909 in branch refs/heads/master from bowserj
          [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=995270e ]

          CB-4514: Making DirectoryCopy Recursive

          jira-bot ASF subversion and git services added a comment - Commit 995270e1f1078cf313aa1d17a09472b399f4f909 in branch refs/heads/master from bowserj [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=995270e ] CB-4514 : Making DirectoryCopy Recursive
          agrieve Andrew Grieve added a comment -

          mobile-spec test?

          agrieve Andrew Grieve added a comment - mobile-spec test?

          People

            bowserj Joey Robert Bowser
            xyq.384.b Rubén Vaquero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: