[
https://issues.apache.org/jira/browse/CB-7327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Urs Meier closed CB-7327.
-------------------------
Resolution: Duplicate
> Creating folder in cordova.file.dataDirectory goes into wrong file system
> -------------------------------------------------------------------------
>
> Key: CB-7327
> URL: https://issues.apache.org/jira/browse/CB-7327
> 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)