moved the done function up out of the getStatHandler function and in to the file method as if node-dir.paths() was called on an empty folder it attempted to call done outside of the getStatHandler function so couldn't get access to the done method. Had to add in some error handling to the done function to handle a null argument being passed as a result..... think it's all correct :s
moved the done function up out of the getStatHandler function and in to the file method as if node-dir.paths() was called on an empty folder it attempted to call done outside of the getStatHandler function so couldn't get access to the done method. Had to add in some error handling to the done function to handle a null argument being passed as a result..... think it's all correct :s

fshost/node-dir,dperetti/node-dir,rlanore/node-dir