GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify copyFile symlink behavior · nodejs/node@63583c4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • fs.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+12Lines changed: 12 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,10 @@ changes:
13271327
Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
13281328
already exists.
13291329
1330+
Symbolic links are followed. If `src` is a symbolic link, the target file is
1331+
copied. If `dest` is a symbolic link, the target file is overwritten unless
1332+
`mode` contains `fs.constants.COPYFILE_EXCL`.
1333+
13301334
No guarantees are made about the atomicity of the copy operation. If an
13311335
error occurs after the destination file has been opened for writing, an attempt
13321336
will be made to remove the destination.
@@ -2841,6 +2845,10 @@ callback function. Node.js makes no guarantees about the atomicity of the copy
28412845
operation. If an error occurs after the destination file has been opened for
28422846
writing, Node.js will attempt to remove the destination.
28432847
2848+
Symbolic links are followed. If `src` is a symbolic link, the target file is
2849+
copied. If `dest` is a symbolic link, the target file is overwritten unless
2850+
`mode` contains `fs.constants.COPYFILE_EXCL`.
2851+
28442852
`mode` is an optional integer that specifies the behavior
28452853
of the copy operation. It is possible to create a mask consisting of the bitwise
28462854
OR of two or more values (e.g.
@@ -6004,6 +6012,10 @@ already exists. Returns `undefined`. Node.js makes no guarantees about the
60046012
atomicity of the copy operation. If an error occurs after the destination file
60056013
has been opened for writing, Node.js will attempt to remove the destination.
60066014
6015+
Symbolic links are followed. If `src` is a symbolic link, the target file is
6016+
copied. If `dest` is a symbolic link, the target file is overwritten unless
6017+
`mode` contains `fs.constants.COPYFILE_EXCL`.
6018+
60076019
`mode` is an optional integer that specifies the behavior
60086020
of the copy operation. It is possible to create a mask consisting of the bitwise
60096021
OR of two or more values (e.g.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.