Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path error while syncing to Linux but working on Windows #1

Open
zsxsoft opened this issue Jul 11, 2017 · 0 comments
Open

Path error while syncing to Linux but working on Windows #1

zsxsoft opened this issue Jul 11, 2017 · 0 comments

Comments

@zsxsoft
Copy link

zsxsoft commented Jul 11, 2017

In sftp-client.js:

    const remotePath = path.join(remoteRoot, relativePath)
    const remoteDir = path.dirname(remotePath)

I'm working on Windows so path.sep === '\', so:
image

As an interim measure, I force replaced \ to /. I think it's necessary to add a configuration of remote server's OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant