MiWatchKleaner/lib/files.js
2020-04-24 20:42:45 +01:00

12 lines
235 B
JavaScript

const fs = require('fs');
const path = require('path');
module.exports = {
getCurrentDirectoryBase: () => {
return path.basename(process.cwd());
},
directoryExists: (filePath) => {
return fs.existsSync(filePath);
}
};