LocalFileSystem
Posted: 22:21, 27 Apr 2015
Hi,
I'm Trying to use the functionality window.requestFileSystem and as the first parameter I'm passing in LocalFileSystem.TEMPORARY,
however I keep on getting an error message that LocalFileSystem.PERSISTENT is undefined.
I'm executing the EvoThings clien on an IOS device.
Bellow is a simple piece of sample code to test the function:
app.failCB = function (msg) {
return function () {
alert('[FAIL] ' + msg);
}
};
app.gotFS = function (fs) {
// placeholder success callback
console.log('gotFS');
}
app.test = function()
{
try {
var fail = app.failCB('requestFileSystem');
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, app.gotFS, fail);
} catch(e) {
alert(e);
}
};
I'm Trying to use the functionality window.requestFileSystem and as the first parameter I'm passing in LocalFileSystem.TEMPORARY,
however I keep on getting an error message that LocalFileSystem.PERSISTENT is undefined.
I'm executing the EvoThings clien on an IOS device.
Bellow is a simple piece of sample code to test the function:
app.failCB = function (msg) {
return function () {
alert('[FAIL] ' + msg);
}
};
app.gotFS = function (fs) {
// placeholder success callback
console.log('gotFS');
}
app.test = function()
{
try {
var fail = app.failCB('requestFileSystem');
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, app.gotFS, fail);
} catch(e) {
alert(e);
}
};