node-ftp-client icon indicating copy to clipboard operation
node-ftp-client copied to clipboard

Normalize path on Windows

Open rapkin opened this issue 8 years ago • 0 comments

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.

rapkin avatar Oct 23 '16 17:10 rapkin