Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8854e5

Browse filesBrowse files
JacksonTianjasnell
authored andcommitted
doc: document the cache parameter for fs.realpathSync
PR-URL: #4285 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2859f9e commit a8854e5
Copy full SHA for a8854e5

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+3-1Lines changed: 3 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,9 @@ Synchronous version of [`fs.read()`][]. Returns the number of `bytesRead`.
634634

635635
## fs.realpathSync(path[, cache])
636636

637-
Synchronous realpath(2). Returns the resolved path.
637+
Synchronous realpath(2). Returns the resolved path. `cache` is an
638+
object literal of mapped paths that can be used to force a specific path
639+
resolution or avoid additional `fs.stat` calls for known real paths.
638640

639641
## fs.rename(oldPath, newPath, callback)
640642

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.