| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1351,6 +1351,9 @@ behavior is similar to `cp dir1/ dir2/`. | |||
| 1351 | 1351 | <!-- YAML | |
| 1352 | 1352 | added: v22.0.0 | |
| 1353 | 1353 | changes: | |
| 1354 | + - version: REPLACEME | ||
| 1355 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 1356 | + description: Add support for the `followSymlinks` option. | ||
| 1354 | 1357 | - version: | |
| 1355 | 1358 | - v24.1.0 | |
| 1356 | 1359 | - v22.17.0 | |
@@ -1380,11 +1383,16 @@ changes: | |||
| 1380 | 1383 | If a string array is provided, each string should be a glob pattern that | |
| 1381 | 1384 | specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are | |
| 1382 | 1385 | not supported. | |
| 1386 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 1387 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 1383 | 1388 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 1384 | 1389 | `false` otherwise. **Default:** `false`. | |
| 1385 | 1390 | * Returns: {AsyncIterator} An AsyncIterator that yields the paths of files | |
| 1386 | 1391 | that match the pattern. | |
| 1387 | 1392 | ||
| 1393 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 1394 | + traversed recursively. | ||
| 1395 | + | ||
| 1388 | 1396 | ```mjs | |
| 1389 | 1397 | import { glob } from 'node:fs/promises'; | |
| 1390 | 1398 | ||
@@ -3464,6 +3472,9 @@ descriptor. See [`fs.utimes()`][]. | |||
| 3464 | 3472 | <!-- YAML | |
| 3465 | 3473 | added: v22.0.0 | |
| 3466 | 3474 | changes: | |
| 3475 | + - version: REPLACEME | ||
| 3476 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 3477 | + description: Add support for the `followSymlinks` option. | ||
| 3467 | 3478 | - version: | |
| 3468 | 3479 | - v24.1.0 | |
| 3469 | 3480 | - v22.17.0 | |
@@ -3491,6 +3502,8 @@ changes: | |||
| 3491 | 3502 | * `exclude` {Function|string\[]} Function to filter out files/directories or a | |
| 3492 | 3503 | list of glob patterns to be excluded. If a function is provided, return | |
| 3493 | 3504 | `true` to exclude the item, `false` to include it. **Default:** `undefined`. | |
| 3505 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 3506 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 3494 | 3507 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 3495 | 3508 | `false` otherwise. **Default:** `false`. | |
| 3496 | 3509 | ||
@@ -3499,6 +3512,9 @@ changes: | |||
| 3499 | 3512 | ||
| 3500 | 3513 | * Retrieves the files matching the specified pattern. | |
| 3501 | 3514 | ||
| 3515 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 3516 | + traversed recursively. | ||
| 3517 | + | ||
| 3502 | 3518 | ```mjs | |
| 3503 | 3519 | import { glob } from 'node:fs'; | |
| 3504 | 3520 | ||
@@ -6038,6 +6054,9 @@ Synchronous version of [`fs.futimes()`][]. Returns `undefined`. | |||
| 6038 | 6054 | <!-- YAML | |
| 6039 | 6055 | added: v22.0.0 | |
| 6040 | 6056 | changes: | |
| 6057 | + - version: REPLACEME | ||
| 6058 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 6059 | + description: Add support for the `followSymlinks` option. | ||
| 6041 | 6060 | - version: | |
| 6042 | 6061 | - v24.1.0 | |
| 6043 | 6062 | - v22.17.0 | |
@@ -6064,10 +6083,15 @@ changes: | |||
| 6064 | 6083 | * `exclude` {Function|string\[]} Function to filter out files/directories or a | |
| 6065 | 6084 | list of glob patterns to be excluded. If a function is provided, return | |
| 6066 | 6085 | `true` to exclude the item, `false` to include it. **Default:** `undefined`. | |
| 6086 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 6087 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 6067 | 6088 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 6068 | 6089 | `false` otherwise. **Default:** `false`. | |
| 6069 | 6090 | * Returns: {string\[]} paths of files that match the pattern. | |
| 6070 | 6091 | ||
| 6092 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 6093 | + traversed recursively. | ||
| 6094 | + | ||
| 6071 | 6095 | ```mjs | |
| 6072 | 6096 | import { globSync } from 'node:fs'; | |
| 6073 | 6097 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments