// In this specific case this always answers that the file doesn't exist
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}
if(localStorage.getItem(filename)!==null){
returncallback(true);
}else{
returncallback(false);
}
}
functionrename(filename,newFilename,callback){
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}
if(typeoflocalStorage==='undefined'){console.log("WARNING - This browser doesn't support localStorage, no data will be saved in NeDB!");returncallback();}