node-ftp
node-ftp copied to clipboard
Can we move file from one folder in FTP to another Folder?
Lets Say i have a filenameA in /files/ folder. After processing this file i want to move it to /processed folder.
Do i have to download-delete-upload to new folder? Is there an endpoint for the same?
You can use the rename() function, worked for me
conn.rename(oldPath, newPath, (err)=> {
console.log(err)
})