Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap window.requestFileSystem args

What's the purpose of the second argument of this funcion? It's always set to zero, but I've never found out what it's used for.

window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, fail);

like image 246
Flavio Avatar asked Feb 23 '26 03:02

Flavio


1 Answers

This text is from cordova.js:
@param size indicates how much storage space, in bytes, the application expects to need

It seems that requestFileSystem will fail if the availability of the disk is smaller than size param.

like image 51
Tank2005 Avatar answered Feb 26 '26 00:02

Tank2005



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!