Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCFCF17332 for ; Thu, 20 Nov 2014 21:25:35 +0000 (UTC) Received: (qmail 22203 invoked by uid 500); 20 Nov 2014 21:25:35 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 22148 invoked by uid 500); 20 Nov 2014 21:25:35 -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 22124 invoked by uid 99); 20 Nov 2014 21:25:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 21:25:34 +0000 Date: Thu, 20 Nov 2014 21:25:34 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8032) Add nativeURL external method support for CDVFileSystem->makeEntryForPath:isDirectory: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220028#comment-14220028 ] ASF GitHub Bot commented on CB-8032: ------------------------------------ Github user shazron closed the pull request at: https://github.com/apache/cordova-plugin-file/pull/91 > Add nativeURL external method support for CDVFileSystem->makeEntryForPath:isDirectory: > -------------------------------------------------------------------------------------- > > Key: CB-8032 > URL: https://issues.apache.org/jira/browse/CB-8032 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File > Environment: iOS > Reporter: Shazron Abdullah > > Right now in CDVFileSystem->makeEntryForPath:isDirectory:, in the NSDictionary that is returned, for the key "nativeURL" the format is fixed (file:// protocol for a local filesystem reference, and assets-library:/ for a assets library filesystem reference.) > When calculating the nativeURL, allow this to be specified externally, check for a selector "nativeURL" and call that if available. > This is for example declared in a Category in this plugin: https://github.com/apache/cordova-plugins/blob/5d8ef21dcbde1f99d60e1b52ae3a3800e4c185d9/local-webserver/src/ios/CDVLocalFileSystem%2BNativeURL.m > ... which when linked will have the selector available for the File plugin to call. > This code is part of the local webserver plugin - and it needs the File references to be proxied through a local webserver. > For example if the FileEntry is to: > > file://my/package/folder/Documents/foo.txt > .. the nativeURL would be, with this new category method, and the local webserver listening to http://localhost:8080: > http://localhost:8080/local-filesystem/my/package/folder/Documents/foo.txt -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org