used to zip file and dir