Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now create example directories in /tmp.

  • Loading branch information...
commit 45a3bec1147ee1b04767b66a0fabe80083dab6a0 1 parent 7bd05fc
Bruno Pedro authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 example.js
View
7 example.js
@@ -6,7 +6,7 @@ var fs = require('./lib/fs');
//
// Example with non-recursion.
//
-fs.mkdir('example_dir/first/second/third/fourth/fifth', 0777, function (err) {
+fs.mkdir('/tmp/example_dir/first/second/third/fourth/fifth', 0777, function (err) {
if (err) {
console.log(err);
} else {
@@ -18,7 +18,7 @@ fs.mkdir('example_dir/first/second/third/fourth/fifth', 0777, function (err) {
// Example with recursion -- notice the parameter
// right before the callback function.
//
-fs.mkdir('example_dir/first/second/third/fourth/fifth', 0777, true, function (err) {
+fs.mkdir('/tmp/example_dir/first/second/third/fourth/fifth', 0777, true, function (err) {
if (err) {
console.log(err);
} else {
@@ -28,4 +28,5 @@ fs.mkdir('example_dir/first/second/third/fourth/fifth', 0777, true, function (er
//
// Synchronous example with recursion.
-fs.mkdirSync('example_sync/first/second/third/fourth/fifth', 0777, true);
+//
+fs.mkdirSync('/tmp/example_sync/first/second/third/fourth/fifth', 0777, true);
Please sign in to comment.
Something went wrong with that request. Please try again.