-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
fs.rename() can't move file between two different disks #2703
Comments
Someone correct me if I'm wrong, by I believe that's Just How It Works™. Since the The |
Fixes the "UNKNOWN" errno first reported in nodejs/node-v0.x-archive#2703.
This. I don't know if there is an OS that would let you rename across filesystems. You have to copy the data and delete the old file. Rename just changes the link, it can't actually move data from one place to another. |
PHP's If we no one is going to extend |
I disagree. If you're adding a Node is supposed to be low level. |
Fully agreed with the @chjj and @TooTallNate point. High-level implementation may be done ( and probably is already done) in user-land modules and should not go into the core. |
Note to future self: node-fs-extra has its implementation of |
…docker volume see nodejs/node-v0.x-archive#2703 for more
when upload file using formiddle module ,as default posted file will be written to a tmp dir(/tmp/xxxxx.file) . in my response handler, i want move this tmp file to apps storage path using fs.rename() . but fs.rename() always throw exception(can not find the source file: /tmp/xxxx.file) .
so i changed the formiddle module's default tmp folder into same disk with apps ,now it's works well
os: windows | linux ubuntu
node:v0.6.8
The text was updated successfully, but these errors were encountered: