atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
202 stars 57 forks source link

behave differently with Mac os and Ubuntu #52

Closed liangjun-jiang closed 7 years ago

liangjun-jiang commented 7 years ago

Here is my problem.

local dir: a/xml/
remote dir: a/

so I want to upload all files under my local 'a/xml/' to remote 'a/'. I use mirror function. When I execute my node script on mac os. All files under local is uploaded to remote, as expected. When I execute script under ubuntu, an extra 'xml' folder is created, and all files are uploaded this 'xml'.
Any possible reason?

liangjun-jiang commented 7 years ago

I solved this issue by defining

local dir: a/xml/.