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 D119018ABD for ; Wed, 4 Nov 2015 18:30:40 +0000 (UTC) Received: (qmail 38023 invoked by uid 500); 4 Nov 2015 18:30:28 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 38002 invoked by uid 500); 4 Nov 2015 18:30:28 -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 37629 invoked by uid 99); 4 Nov 2015 18:30:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2015 18:30:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 488372C1F65 for ; Wed, 4 Nov 2015 18:30:28 +0000 (UTC) Date: Wed, 4 Nov 2015 18:30:28 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9752) getDirectory fails on valid directory with assets filesystem 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-9752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14990122#comment-14990122 ] ASF GitHub Bot commented on CB-9752: ------------------------------------ Github user asfgit closed the pull request at: https://github.com/apache/cordova-plugin-file/pull/144 > getDirectory fails on valid directory with assets filesystem > ------------------------------------------------------------ > > Key: CB-9752 > URL: https://issues.apache.org/jira/browse/CB-9752 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin File > Environment: cordova 5.3.3 > cordova android 4.0.0 > cordova-plugin-file 2.0.0 > *** using build-extras.gradle to speed up lookups (as per README.md for plugin) *** > Reporter: Denis Babineau > Assignee: Jason Ginchereau > > The following JS snippet fails with "failed to get www directory": > window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function(appDir) { > appDir.getDirectory('www', {create:false}, function(wwwDir) { > console.log("success!"); > }, function() { > console.log("failed to get www directory"); > }); > }, function() { > console.log("Failed to get application directory"); > }); > I narrowed it down to AssetFilesystem.java's listAssets() method called from isDirectory() which returns the "new String[0];" (assetPath = 'www/' in this method) which in turn causes isDirectory() to return false. -- 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