When i use this options {baseDir: backupDir} on upload i receive error on Windows - sometimes path not normalized. So when we try to remove baseDir from path (https://github.com/noodny/node-ftp-client/blob/master/lib/client.js#L108) on Windows possible to have error. Please use function path.normalize in your package to prevent errors like this.
When i use this options
{baseDir: backupDir}
on upload i receive error on Windows - sometimes path not normalized. So when we try to removebaseDir
from path (https://github.com/noodny/node-ftp-client/blob/master/lib/client.js#L108) on Windows possible to have error. Please use functionpath.normalize
in your package to prevent errors like this.