diff --git a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js index 244a18f2d158..72153d663af6 100644 --- a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js +++ b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js @@ -22,7 +22,7 @@ var readDir = require( './../lib' ); /* Sync */ -var out = readDir.sync( __dirname ); +var out = readDir.sync( process.cwd() ); // returns console.log( out instanceof Error ); @@ -32,11 +32,11 @@ out = readDir.sync( 'beepboop' ); // returns console.log( out instanceof Error ); -// => true +// => false /* Async */ -readDir( __dirname, onRead ); +readDir( process.cwd(), onRead ); readDir( 'beepboop', onRead ); function onRead( error, data ) {