Answer the question
In order to leave comments, you need to log in
How to copy a file to another Node.js folder?
There is a folder on the computer that contains the necessary file. I created a new folder:
I need to copy the file from the first folder to the second, that is, it must not only end up in the second, but also remain in the first. Can this be done with fs? I found only writeFileSync, which just creates a file, nothing else could be found.
fs.mkdirSync(path.join(__dirname, "uploads", id))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question