question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fs.cp coming to Node.js core

See original GitHub issue

As per https://github.com/nodejs/node/pull/39372; Node.js is considering moving copy*() to fs core. This will create a naming conflict between our method and fs core when it’s released. How do we want to handle this?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
RyanZimcommented, Aug 3, 2021

fse.copy should retain its current options and defaults; but use fs.cp under the hood where possible. When fs.cp is supported everywhere, we should probably consider deprecating fse.copy, in favor of people using fs.cp directly; they can use the new options/defaults when they migrate there.

1reaction
bcoecommented, Jul 31, 2021

we’ve since moved to fs.cp.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File system | Node.js v19.3.0 Documentation
The node:fs module enables interacting with the file system in a way modeled on standard POSIX functions. To use the promise-based APIs: import...
Read more >
How To Work with Files using the fs Module in Node.js
With Node. js, you can programmatically manipulate files with the built-in fs module. The name is short for “file system,” and the module ......
Read more >
Understanding the Node.js File System Module (FS) - Kinsta
js modules like file systems (also known as “FS” or “fs”). A high-level understanding of JavaScript functions, callback functions, and promises ...
Read more >
Mastering the Node.js Core Modules — The File System & the ...
File I/O is provided by simple wrappers around standard POSIX functions. To use the fs module you have to require it with require('fs')...
Read more >
Build a Back-End with Node/Express.js - Codecademy
The filesystem controls how data on a computer is stored and retrieved. Node.js provides the fs core module, which allows interaction with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found