noodny / node-ftp-client

MIT License
64 stars 32 forks source link

Normalize path on Windows #9

Open rapkin opened 8 years ago

rapkin commented 8 years ago

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.