Mylogo / ftp-sftp

Treat Local, FTP and SFTP file systems the same way in Node.js
1 stars 9 forks source link

Use Node's path module to construct paths #4

Closed mcdado closed 2 years ago

mcdado commented 2 years ago

When listing a local file system and the path variabile didn't have ending slash, it would cause an error. Using Node's path.join() we can be sure that the right directory separator is used.

Mylogo commented 2 years ago

Great contribution, thank you very much! Looks good to me. Checking it out and then accepting it.