how complete the ftruncate ? with/withtout callback(false)? my code in RESTful API is :
lib.update=function(dir,file,data, callBack){ //Open the file for writing