You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`mkdirs(dir[,options][,callback])`, `mkdirp(dir[,options][,callback])`, `ensureDir(dir[,options][,callback])`|`fs.mkdir(dir, { recursive: true }, callback)`|`ensureDir` and `mkdirp` are aliases of `mkdirs`|
32
-
|`mkdirpSync(dir[,options])`, `mkdirsSync(dir[,options])`, `ensureDirSync(dir[,options])`|`fs.mkdirSync(dir, { recursive: true })`|`ensureDirSync` and `mkdirpSync` are aliases of `mkdirsSync`|
|`moveSync(source, destination, { overwrite: true })`|`fs.renameSync(source, destination)`| These are not strictly equivalent. The `move` methods in fs-extra act like the `mv` command and they will work across devices also. The `rename` methods in fs work like the `rename` system call and will **not** work across devices. Having Node’s `rename` methods work across devices is currently [marked as a "won't fix."](https://github.com/nodejs/node/issues/19077) Also, the `overwrite: true` behaviour is the default/only behaviour in the standard library. |
|`mkdirs(dir[,options][,callback])`, `mkdirp(dir[,options][,callback])`, `ensureDir(dir[,options][,callback])`|`fs.mkdir(dir, { recursive: true }, callback)`|`ensureDir` and `mkdirp` are aliases of `mkdirs`|
32
+
|`mkdirpSync(dir[,options])`, `mkdirsSync(dir[,options])`, `ensureDirSync(dir[,options])`|`fs.mkdirSync(dir, { recursive: true })`|`ensureDirSync` and `mkdirpSync` are aliases of `mkdirsSync`|
|`moveSync(source, destination, { overwrite: true })`|`fs.renameSync(source, destination)`| These are not strictly equivalent. The `move` methods in fs-extra act like the `mv` command and they will work across devices also. The `rename` methods in fs work like the `rename` system call and will **not** work across devices. Having Node’s `rename` methods work across devices is currently [marked as a "won't fix."](https://github.com/nodejs/node/issues/19077) Also, the `overwrite: true` behaviour is the default/only behaviour in the standard library. |
0 commit comments