 			fullPathPlugins = _.map plugins, (plugin) ->
 				return path.join(directory, plugin)
 
-			async.filter fullPathPlugins, isDirectory, (results) ->
+			async.filter fullPathPlugins, fsPlus.isDirectory, (results) ->
 				return callback(null, results)
 
 	], callback)


	], callback)

isDirectory = (directory, callback) ->
	fs.stat directory, (error, stats) ->
		return callback(false) if error?
		return callback(stats.isDirectory())

exports.readPluginsDirectory = (directory, callback) ->

	async.waterfall([

async = require('async')
path = require('path')
fs = require('fs')
fsPlus = require('fs-plus')
resin = require('../resin')

PLUGINS_LOAD_PARALLEL_LIMIT = 5
