UNPKG

gh-db-installer

Version:
19 lines (18 loc) 424 B
// 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;