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
@@ -566,7 +571,7 @@ Creates a directory at given path. Not that the parent dir should exist for this
566
571
567
572
- **Parameters:**
568
573
- `path` _(string)_ - The path where the directory should be created.
569
-
- `mode` _(number|function)_ (Optional, default: `0o666`) - The directory permissions.
574
+
- `mode` _(number|function)_ (Optional, default: `0o777`) - The directory permissions.
570
575
- `callback` _(function)_ (Optional) - Callback to execute once directory creation is done. Called with an error as the first argument on failure, and null on success.
Copy file name to clipboardExpand all lines: src/fslib_tauri.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ function readdir(path, options, callback) {
285
285
* Creates a directory with optional mode and recursion(create all intermediate directories if those don't exist).
286
286
*
287
287
* @param {string} path - The path where the directory should be created.
288
-
* @param {(number)} [mode=0o666] - The directory permissions. Defaults to `0o666` if not provided.
288
+
* @param {(number)} [mode=0o777] - The directory permissions. Defaults to `0o777` if not provided.
289
289
* @param {(boolean)} [recursive=false] - Whether to create directories recursively. Defaults to `false` if not provided.
290
290
* @param {function} [callback] - Callback to execute once directory creation is done. Called with an error as the first argument on failure, and null on success.
291
291
*
@@ -309,7 +309,7 @@ function mkdirs(path, mode, recursive, callback) {
309
309
if(typeofmode!=='number'){
310
310
callback=recursive;
311
311
recursive=mode;
312
-
mode=0o666;// Default mode (or any other default you'd like to set)
312
+
mode=0o777;// Default mode (or any other default you'd like to set)
0 commit comments