Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 526D190DB for ; Mon, 27 Feb 2012 22:05:37 +0000 (UTC) Received: (qmail 92032 invoked by uid 500); 27 Feb 2012 22:05:37 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 92012 invoked by uid 500); 27 Feb 2012 22:05:37 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 92001 invoked by uid 99); 27 Feb 2012 22:05:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:05:37 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fil@adobe.com designates 64.18.1.35 as permitted sender) Received: from [64.18.1.35] (HELO exprod6og115.obsmtp.com) (64.18.1.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:05:27 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob115.postini.com ([64.18.5.12]) with SMTP ID DSNKT0v9hCPpgWwOS2XMTa7W3URI5M4CWqYz@postini.com; Mon, 27 Feb 2012 14:05:06 PST Received: from inner-relay-1.corp.adobe.com (ms-exchange.macromedia.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q1RM2hN3024533 for ; Mon, 27 Feb 2012 14:02:43 -0800 (PST) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q1RM2gMM014647 for ; Mon, 27 Feb 2012 14:02:42 -0800 (PST) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas01.corp.adobe.com ([10.8.189.99]) with mapi; Mon, 27 Feb 2012 14:02:42 -0800 From: Filip Maj To: "callback-dev@incubator.apache.org" Date: Mon, 27 Feb 2012 14:02:40 -0800 Subject: Re: Bug in FileSystem.js Thread-Topic: Bug in FileSystem.js Thread-Index: Acz1m4bRjGfo4d3fRSKkEBbqGHFRLw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.14.0.111121 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org >Making this change gets me further in the iOS update. However, I don't >understand why the other platforms are returning a URL in the fullPath >parameter. Will start/continue a thread on that. > >-becky This is left-over baggage from previous implementations. Figuring out a good way to abstract would be nice. Basically: each platform implements file system paths/URIs differently. The W3C spec recommends an even different way. The holy grail would be File API code that we could literally copy-paste across platforms and see it "just work." What I've seen employed and what I've seen recommended by various people: - an app: URI. app:/ or app:// or app:/// would be the root of your app "jail" - leaving it up to the implementations to figure out how to do that, decoding the paths on the native side, etc. The W3C widget spec I believe has some similar suggestions with respect to using a widget:// URI. - using file:///. Then you get an absolute path to the device. Encompasses cases where you want to mess about the FS outside of your app and globally on the device. Maybe we could use some kind of convention here but it could get messy. - just using absolute or relative URLs, regardless of protocol. Like "/" or "/cache/". - I think the recommendation in the latest File API W3C spec draft has something like http://example.domain/app/ - but this doesn't make much sense to me. In all honesty, I have little preference to either of these. As long as it is consistent :) For 1.5, let's leave the current baggage and let it "just work." Moving forward, let's document and discuss this, let our community know, and fix it.