parent
6e0aac6355
commit
5fa6724215
@ -0,0 +1,22 @@ |
||||
"use strict"; |
||||
|
||||
var fse = require('fs-extra'); |
||||
|
||||
module.exports = function (params, processor) { |
||||
return { |
||||
process: function () { |
||||
var sourceFilePath = processor.context.exported + "/" + params.filename; |
||||
|
||||
processor.onInfo("Deleting " + sourceFilePath); |
||||
|
||||
fse.remove(sourceFilePath, function(err) { |
||||
if (err) { |
||||
processor.onError("Unable to delete file: " + err); |
||||
} else { |
||||
processor.onInfo("Deleted file"); |
||||
} |
||||
return processor.done(); |
||||
}); |
||||
} |
||||
}; |
||||
}; |
Loading…
Reference in new issue