function checkAvailableStorage(theFile) {
    if(!theFile) return false;
    if(theFile.spaceAvailable() > theFile.size) {
        return false;
    }
    return true;
}
/**
 * Checks if enough space left to store image
 *
 * @method checkAvailableStorage
 * @private
 * @param {Ti.Filesystem.File} theFile
 * @return {Bool} Enough space available or not
 */
Checks if enough space left to store image
@method checkAvailableStorage
@private
@param {Ti.Filesystem.File} theFile
@return {Bool} Enough space available or not
Checks if enough space left to store image @method checkAvailableStorage @private @param { Ti . Filesystem . File } theFile @return { Bool } Enough space available or not
function checkAvailableStorage(theFile) {
    if(!theFile) return false;
    if(theFile.spaceAvailable() > theFile.size) {
        return false;
    }
    return true;
}
function checkAvailableStorage ( theFile ) { if ( ! theFile ) return false ; if ( theFile . spaceAvailable ( ) > theFile . size ) { return false ; } return true ; }
Checks if enough space left to store image
 @method checkAvailableStorage
 @private
 @param {Ti.Filesystem.File} theFile
 @return {Bool} Enough space available or not
Checks if enough space left to store image @method checkAvailableStorage @private @param { Ti . Filesystem . File } theFile @return { Bool } Enough space available or not