Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B9F31111C for ; Tue, 6 May 2014 14:18:51 +0000 (UTC) Received: (qmail 20020 invoked by uid 500); 6 May 2014 14:06:57 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 19989 invoked by uid 500); 6 May 2014 14:06:56 -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 19968 invoked by uid 99); 6 May 2014 14:06:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 14:06:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.219.53 as permitted sender) Received: from [209.85.219.53] (HELO mail-oa0-f53.google.com) (209.85.219.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 14:06:51 +0000 Received: by mail-oa0-f53.google.com with SMTP id m1so7654987oag.40 for ; Tue, 06 May 2014 07:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=v55hSlYSvmzNdMxZHMcrPeo0z/QZ+ihj6FVKr7KhCdE=; b=H4S3T75/W8gUkmSJql6UBLKaUkUrr33gX/ins+6isMKT3V0QHuWWVpovOVbMKGF62V PKb0pjlmYeq6SlLoojUxaUCbxgrk2Lv5K5JS4KBJ+a8TaNB2HxrTgJ60E8/FPctaiABb TdHsqAhV0dzPGjpF4pLY+pU1uRalzCIb8BIoSkrcFG8vewGCuon/i99p27uw9I2jY3MB R+wuNp81hBqpfMTyBWo9aTBouxL8tNK5C6+bsQ8dUmTuvT+GT8dt/Df78sXVY8Ok5Rbc osAyYTm2HwuANzkL720Ze4SKmae36NZeNwTVaAdZEjNxV9mGMKzV1I50T82oZuuIwvFX j9xA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=v55hSlYSvmzNdMxZHMcrPeo0z/QZ+ihj6FVKr7KhCdE=; b=FGo7aboB2sLEFGwJLQRt0l3vVrg28MsWiQ/hTk3DNTEKj7euvNwVq8XC71dlqP+iMn RNfqRgFCzT7Yn3cNzUANAlw6sPfNvGPkJQfwhj/l1R9Y3/VuwrAt6R4p3U0clMespTcX +szf34J3k13s2gVz86PTt1DivgkBypSHmwhDI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=v55hSlYSvmzNdMxZHMcrPeo0z/QZ+ihj6FVKr7KhCdE=; b=Cu9eSBI4c5QScvkrNkrYvoi6LDumxmMZl3tAiX2qyW5VVQmsUtUeWcRU2lVgJudDn/ 0O0zW04Vu6LArrIyDdrhEo70UFRNlbJMxUTLOKEw1yVYqcOLAfGInSorYjrUbMV18UdC s75yyq4yJpCGHq3v0MQ8D3nRnFa8Gd2j9bAMca4X6MemiBMr+ca4+5u7ABB1Ny2IyQvh LEI02M4QSrzcPM3y72+IhDhqvK4rOO446lFxbV7v6UQElXAxbdCHTdm8cU/I2gHYroyE WB3PhlB98zL6J2Wy4ZeHVZDnPKLV6deol9axIO69U/QlbWCcUtb03/t2b+oPVzUa/IwM ryIQ== X-Gm-Message-State: ALoCoQkq4uWGhpMtFzkYMJ3vlQLUvcYFoKuADTrZhHwI6QRpC/eyDmuTtnTs77SkWQTUtcqS/BbE X-Received: by 10.60.132.236 with SMTP id ox12mr1535734oeb.81.1399385190990; Tue, 06 May 2014 07:06:30 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.135.40 with HTTP; Tue, 6 May 2014 07:06:10 -0700 (PDT) From: Andrew Grieve Date: Tue, 6 May 2014 10:06:10 -0400 X-Google-Sender-Auth: tORjRQU5sd0AZKoTWxTmbTF4wdQ Message-ID: Subject: CB-285 (FileSystem paths) To: dev Content-Type: multipart/alternative; boundary=047d7b41cd2836a15704f8bbc1e0 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b41cd2836a15704f8bbc1e0 Content-Type: text/plain; charset=UTF-8 Closer than ever to resolving this (woo!) The file plugin is now able to read & write to roots on the filesystem beyond PERSISTENT and TEMPORARY on iOS, Android, and BlackBerry (and maybe others?) However, you still can't query for the location of these places (doh!) There's a file-extras plugin in cordova-labs: https://git-wip-us.apache.org/repos/asf?p=cordova-labs.git;a=blob;f=file-extras/fileextras.js;h=1f8f88f7222bd4022f2f802f6825c189b10445d9;hb=aaf61d4 That was used to experiment with an API for this. I think the API is pretty much fine, and I'd like to add it to the core file plugin rather than have it as a separate plugin. This would add: cordova.plugins.file.getDirectoryForPurpose(purpose, options, win, fail) Where purpose can be one of: var Purpose = { 'data': 0, // General application data (default) 'documents': 1, // Files that are meaningful to other applciations (e.g. Office files) 'cache': 2, // Temporary files that should survive app restarts 'temp': 3, // Files that can should be deleted on app restarts 'app-bundle': 4 // The application bundle (iOS only) } And also add convenience wrappers: cordova.plugins.file.getDataDirectory(syncable, win) cordova.plugins.file.getDocumentsDirectory(win) cordova.plugins.file.getTempDirectory(win) cordova.plugins.file.getCacheDirectory(win) Any comments on this? --047d7b41cd2836a15704f8bbc1e0--