Permalink
Browse files

[refactoring] Use `fs` instead of `path` for node v0.8.x

  • Loading branch information...
ben-lin committed Jul 23, 2012
1 parent fefb524 commit 3eb21176ab9972246345f1a378f578ec29803782
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/node.packer/run.js
@@ -52,7 +52,7 @@ var flow = new Flow({
// check if the dir exist, if it does remove it
flow.series( function ( args, next ){
- if( path.existsSync( target_dir )){
+ if( fs.existsSync( target_dir )){
rmdir( target_dir, function ( err, dirs, files ){
if( err ) throw err;
next();

0 comments on commit 3eb2117

Please sign in to comment.