@@ -1421,6 +1421,9 @@ behavior is similar to `cp dir1/ dir2/`.
14211421<!-- YAML
14221422added: v22.0.0
14231423changes:
1424+ - version: REPLACEME
1425+ pr-url: https://github.com/nodejs/node/pull/64003
1426+ description: Add support for the ` maxDepth` option.
14241427 - version:
14251428 - v26.1.0
14261429 - v24.16.0
@@ -1457,6 +1460,8 @@ changes:
14571460 not supported.
14581461 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
14591462 followed while expanding ` ** ` patterns. **Default:** ` false ` .
1463+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
1464+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
14601465 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
14611466 ` false ` otherwise. **Default:** ` false ` .
14621467* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
@@ -3629,6 +3634,9 @@ descriptor. See [`fs.utimes()`][].
36293634<!-- YAML
36303635added: v22.0.0
36313636changes:
3637+ - version: REPLACEME
3638+ pr-url: https://github.com/nodejs/node/pull/64003
3639+ description: Add support for the `maxDepth` option.
36323640 - version:
36333641 - v26.1.0
36343642 - v24.16.0
@@ -3663,6 +3671,8 @@ changes:
36633671 `true` to exclude the item, `false` to include it. **Default:** `undefined`.
36643672 * `followSymlinks` {boolean} When `true`, symbolic links to directories are
36653673 followed while expanding `**` patterns. **Default:** `false`.
3674+ * `maxDepth` {integer} Maximum number of directory levels to traverse.
3675+ The `cwd` directory has a depth of `0`. **Default:** `Infinity`.
36663676 * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
36673677 `false` otherwise. **Default:** `false`.
36683678
@@ -6273,6 +6283,9 @@ Synchronous version of [`fs.futimes()`][]. Returns `undefined`.
62736283<!-- YAML
62746284added: v22.0.0
62756285changes:
6286+ - version: REPLACEME
6287+ pr-url: https://github.com/nodejs/node/pull/64003
6288+ description: Add support for the ` maxDepth` option.
62766289 - version:
62776290 - v26.1.0
62786291 - v24.16.0
@@ -6306,6 +6319,8 @@ changes:
63066319 ` true ` to exclude the item, ` false ` to include it. **Default:** ` undefined ` .
63076320 * ` followSymlinks` {boolean} When ` true ` , symbolic links to directories are
63086321 followed while expanding ` ** ` patterns. **Default:** ` false ` .
6322+ * ` maxDepth` {integer} Maximum number of directory levels to traverse.
6323+ The ` cwd` directory has a depth of ` 0 ` . **Default:** ` Infinity ` .
63096324 * ` withFileTypes` {boolean} ` true ` if the glob should return paths as Dirents,
63106325 ` false ` otherwise. **Default:** ` false ` .
63116326* Returns: {string\[ ]} paths of files that match the pattern.
0 commit comments