Showing 2 of 2 total issues
Function cleanUp
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileCleaner.prototype.cleanUp = function(){
var self = this;
var maxAge = this.maxAge;
var recursive = this.options.recursive;
Function worker
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function worker(path) {
fs.readdir(path, function (err, files) {
if (err) {
self.emit('error', new Error("Can't read directory " + path));
return;