Skip to content

Commit

Permalink
allow string to be passed to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Aug 25, 2012
1 parent 22a03f3 commit e4b9253
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/imager.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ Imager.prototype.remove = function (files, callback, variant) {

var self = this

if (!Array.isArray(files) && typeof files === 'string')
files = files.split()

var prepareRemove = function (file, iteratorCallback) {
self.prepareRemove(file, iteratorCallback, variant)
}
Expand Down

0 comments on commit e4b9253

Please sign in to comment.