gh-db-installer
Version:
This module helps you to install the gh-db
19 lines (18 loc) • 424 B
JavaScript
// add modules
const fs = require('fs');
const path = require('path');
let removeFile = function (dirPath, name) {
try {
// remove file
fs.unlinkSync(path.join(__dirname, '../file_sistem', dirPath, name));
return ("file has been removed");
}
catch (err){
return({
message: "Can not remove file",
err: err
});
}
}
//exports
module.exports = removeFile;