You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.macosIssues and PRs related to the macOS platform / OSX.
On Windows, it results EPERM, but on mac, it creates an empty directory unexpectedly. The behaviours are not consistent.
Since the API is named copyFile, rather than copyDirectory, it should not be able to copy a directory, and should throw ENOTDIR in my first mind.
The text was updated successfully, but these errors were encountered:
xuld
changed the title
fs.copyFileSync(directory, target) no dot throw error on macOS
fs.copyFileSync(directory, directory) do not throw error on macOS
Jun 18, 2019
xuld
changed the title
fs.copyFileSync(directory, directory) do not throw error on macOS
fs.copyFileSync(directory, directory) does not throw error on macOS
Jun 18, 2019
ZYSzys
added
fs
Issues and PRs related to the fs subsystem / file system.
libuv
Issues and PRs related to the libuv dependency or the uv binding.
macos
Issues and PRs related to the macOS platform / OSX.
labels
Jun 18, 2019
fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.macosIssues and PRs related to the macOS platform / OSX.
v10.12.0, v11.1.0
Darwin Mac.r 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64
Simply run the code below:
On Windows, it results
EPERM
, but on mac, it creates an empty directory unexpectedly. The behaviours are not consistent.Since the API is named copyFile, rather than copyDirectory, it should not be able to copy a directory, and should throw
ENOTDIR
in my first mind.The text was updated successfully, but these errors were encountered: