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 19AF0200CCB for ; Thu, 20 Jul 2017 15:13:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 183FB16B4A1; Thu, 20 Jul 2017 13:13:33 +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 5F5B416B49E for ; Thu, 20 Jul 2017 15:13:32 +0200 (CEST) Received: (qmail 45615 invoked by uid 500); 20 Jul 2017 13:13:31 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 45604 invoked by uid 99); 20 Jul 2017 13:13:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2017 13:13:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BDAD8DFF63; Thu, 20 Jul 2017 13:13:29 +0000 (UTC) From: VinceOPS To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org Message-ID: Subject: [GitHub] cordova-plugin-file pull request #211: CB-6938: (fix) on iOS, copyTo should ... Content-Type: text/plain Date: Thu, 20 Jul 2017 13:13:29 +0000 (UTC) archived-at: Thu, 20 Jul 2017 13:13:33 -0000 GitHub user VinceOPS opened a pull request: https://github.com/apache/cordova-plugin-file/pull/211 CB-6938: (fix) on iOS, copyTo should overwrite any existing file https://issues.apache.org/jira/browse/CB-6938 ### Platforms affected iOS, all versions. ### What does this PR do? It fixes CB-6938. Instead of returning an error 12 (PATH_EXISTS_ERR), it tries to remove the existing file, then to copy the "new" one. ### What testing has been done on this change? Simulator: iPhone 5 and iPhone 6 @ iOS 9, 10. Real device: iPhone 5 @ iOS 10. No unit test provided nor written. ### 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/VinceOPS/cordova-plugin-file CB-6938cordova-plugin-file Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-file/pull/211.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 #211 ---- commit 064c7f33e8d9b5dcee4f520e80a385336c9fcbc5 Author: VinceOPS Date: 2017-07-20T13:00:42Z iOS: (fix) copyTo should overwrite any existing file ---- --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org