You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Urs Meier (JIRA)" <ji...@apache.org> on 2014/08/18 15:58:18 UTC
[jira] [Created] (CB-7328) Creating folder in
cordova.file.dataDirectory goes into tmp file system instead underneath the
dataDirectory
Urs Meier created CB-7328:
-----------------------------
Summary: Creating folder in cordova.file.dataDirectory goes into tmp file system instead underneath the dataDirectory
Key: CB-7328
URL: https://issues.apache.org/jira/browse/CB-7328
Project: Apache Cordova
Issue Type: Bug
Components: CordovaJS
Affects Versions: 3.5.0
Environment: iOS
Reporter: Urs Meier
Creating a directory in cordova.file.dataDirectory results in a folder which is not underneath cordova.file.dataDirectory
a) window.resolveLocalFileSystemURL(cordova.file.dataDirectory,
gives an object pointing correctly to „…/Library/NoCloud“
Object
filesystem: Object
name: „temporary“ <— this is wrong in my opinion
root: Object
__proto__: Object
fullPath: "/"
isDirectory: true
isFile: false
name: ""
nativeURL: "file:///Users/ursmeier/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/00AA2A74-CD2F-4E20-AEE8-32CA52EAEBAE/Library/NoCloud/"
__proto__: Object
b) calling getDirectory on this object with the option {create: true} creates a directory in the „tmp“ folder, instead of „…/Library/NoCloud"
localDataDirectory.getDirectory("images“,
Object
filesystem: Object
name: "temporary"
root: Object
__proto__: Object
fullPath: "/images/"
isDirectory: true
isFile: false
name: "images"
nativeURL: "file:///Users/ursmeier/Library/Application%20Support/iPhone%20Simulator/7.1/Applications/00AA2A74-CD2F-4E20-AEE8-32CA52EAEBAE/tmp/images/"
__proto__: Object
--
This message was sent by Atlassian JIRA
(v6.2#6252)