を使用してディレクトリを作成していPhonegap
ます。コードの使用中に成功しています。しかし、自分のフォルダが作成された場所を確認する必要があります。彼らがこれらのリンクに語ったリンクを見つけました。
/Users/UserName/Library/Application Support/iPhone Simulator/4.3.2/Applications
/Users/loginname/Library/Application Support/iPhone Simulator/6.1/Applications/YOUR_APP/Documents
しかし、アプリケーション サポートに iPhone シミュレーター フォルダーがありませんか? どこで検索しますか?
私はXcode 4.5バージョンを持っています
同じコードを使用してAndroidディレクトリを見つける方法.iはIosでできます
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, onFileSystemFail);
}
function onFileSystemSuccess(fileSystem) {
console.log(fileSystem.name);
var directoryEntry = fileSystem.root;
directoryEntry.getDirectory("newDir", {create: true, exclusive: false}, onDirectorySuccess, onDirectoryFail)
}
function onDirectorySuccess(parent) {
//alert("onSuccess")
console.log(parent);
// alert(parent+"Directory");
}
function onDirectoryFail(error) {
alert("Unable to create new directory: " + error.code);
}
function onFileSystemFail(evt) {
console.log(evt.target.error.code);
alert(evt.target.error.code);
}