| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1088,6 +1088,9 @@ behavior is similar to `cp dir1/ dir2/`. | |||
| 1088 | 1088 | <!-- YAML | |
| 1089 | 1089 | added: v22.0.0 | |
| 1090 | 1090 | changes: | |
| 1091 | + - version: REPLACEME | ||
| 1092 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 1093 | + description: Add support for the `followSymlinks` option. | ||
| 1091 | 1094 | - version: v24.1.0 | |
| 1092 | 1095 | pr-url: https://github.com/nodejs/node/pull/58182 | |
| 1093 | 1096 | description: Add support for `URL` instances for `cwd` option. | |
@@ -1113,11 +1116,16 @@ changes: | |||
| 1113 | 1116 | If a string array is provided, each string should be a glob pattern that | |
| 1114 | 1117 | specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are | |
| 1115 | 1118 | not supported. | |
| 1119 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 1120 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 1116 | 1121 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 1117 | 1122 | `false` otherwise. **Default:** `false`. | |
| 1118 | 1123 | * Returns: {AsyncIterator} An AsyncIterator that yields the paths of files | |
| 1119 | 1124 | that match the pattern. | |
| 1120 | 1125 | ||
| 1126 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 1127 | + traversed recursively. | ||
| 1128 | + | ||
| 1121 | 1129 | ```mjs | |
| 1122 | 1130 | import { glob } from 'node:fs/promises'; | |
| 1123 | 1131 | ||
@@ -3194,6 +3202,9 @@ descriptor. See [`fs.utimes()`][]. | |||
| 3194 | 3202 | <!-- YAML | |
| 3195 | 3203 | added: v22.0.0 | |
| 3196 | 3204 | changes: | |
| 3205 | + - version: REPLACEME | ||
| 3206 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 3207 | + description: Add support for the `followSymlinks` option. | ||
| 3197 | 3208 | - version: v24.1.0 | |
| 3198 | 3209 | pr-url: https://github.com/nodejs/node/pull/58182 | |
| 3199 | 3210 | description: Add support for `URL` instances for `cwd` option. | |
@@ -3217,6 +3228,8 @@ changes: | |||
| 3217 | 3228 | * `exclude` {Function|string\[]} Function to filter out files/directories or a | |
| 3218 | 3229 | list of glob patterns to be excluded. If a function is provided, return | |
| 3219 | 3230 | `true` to exclude the item, `false` to include it. **Default:** `undefined`. | |
| 3231 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 3232 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 3220 | 3233 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 3221 | 3234 | `false` otherwise. **Default:** `false`. | |
| 3222 | 3235 | ||
@@ -3225,6 +3238,9 @@ changes: | |||
| 3225 | 3238 | ||
| 3226 | 3239 | * Retrieves the files matching the specified pattern. | |
| 3227 | 3240 | ||
| 3241 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 3242 | + traversed recursively. | ||
| 3243 | + | ||
| 3228 | 3244 | ```mjs | |
| 3229 | 3245 | import { glob } from 'node:fs'; | |
| 3230 | 3246 | ||
@@ -5763,6 +5779,9 @@ Synchronous version of [`fs.futimes()`][]. Returns `undefined`. | |||
| 5763 | 5779 | <!-- YAML | |
| 5764 | 5780 | added: v22.0.0 | |
| 5765 | 5781 | changes: | |
| 5782 | + - version: REPLACEME | ||
| 5783 | + pr-url: https://github.com/nodejs/node/pull/62695 | ||
| 5784 | + description: Add support for the `followSymlinks` option. | ||
| 5766 | 5785 | - version: v24.1.0 | |
| 5767 | 5786 | pr-url: https://github.com/nodejs/node/pull/58182 | |
| 5768 | 5787 | description: Add support for `URL` instances for `cwd` option. | |
@@ -5785,10 +5804,15 @@ changes: | |||
| 5785 | 5804 | * `exclude` {Function|string\[]} Function to filter out files/directories or a | |
| 5786 | 5805 | list of glob patterns to be excluded. If a function is provided, return | |
| 5787 | 5806 | `true` to exclude the item, `false` to include it. **Default:** `undefined`. | |
| 5807 | + * `followSymlinks` {boolean} When `true`, symbolic links to directories are | ||
| 5808 | + followed while expanding `**` patterns. **Default:** `false`. | ||
| 5788 | 5809 | * `withFileTypes` {boolean} `true` if the glob should return paths as Dirents, | |
| 5789 | 5810 | `false` otherwise. **Default:** `false`. | |
| 5790 | 5811 | * Returns: {string\[]} paths of files that match the pattern. | |
| 5791 | 5812 | ||
| 5813 | + When `followSymlinks` is enabled, detected symbolic link cycles are not | ||
| 5814 | + traversed recursively. | ||
| 5815 | + | ||
| 5792 | 5816 | ```mjs | |
| 5793 | 5817 | import { globSync } from 'node:fs'; | |
| 5794 | 5818 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments