Closed mnaamani closed 8 months ago
Introduce moveFile(src, dest) in place of fs.promises.rename(src, dest), to avoid EXDEV: cross-device link not permitted error when moving a file from temp and pending folders into the uploads folder when they exist on different volumes.
moveFile(src, dest)
fs.promises.rename(src, dest)
EXDEV: cross-device link not permitted
temp
pending
uploads
Introduce
moveFile(src, dest)
in place offs.promises.rename(src, dest)
, to avoidEXDEV: cross-device link not permitted
error when moving a file fromtemp
andpending
folders into theuploads
folder when they exist on different volumes.