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

upload with absolute or relative paths for remote files? #168

Open
simonh1000 opened this issue Dec 22, 2023 · 1 comment
Open

upload with absolute or relative paths for remote files? #168

simonh1000 opened this issue Dec 22, 2023 · 1 comment
Assignees
Labels
Welcome feedback My PRs would benefit from 'review'

Comments

@simonh1000
Copy link
Owner

I am uploading a single file test.txt to a server. This leads to a put to /test.txt and that is failing. Tweaking the code so that the put uses ./test.txt or test.txt and it works fine. Is this an issue others have faced, or is it an idiosyncrasy of the sftp server I'm connecting to (from a larger hosting company)?

@simonh1000 simonh1000 self-assigned this Dec 22, 2023
@simonh1000 simonh1000 added the Welcome feedback My PRs would benefit from 'review' label Dec 22, 2023
@simonh1000
Copy link
Owner Author

simonh1000 commented Jan 20, 2024

seems like we need an option to send files with relative paths - theophilusx/ssh2-sftp-client#516.

In fact, at present we send top level files as /xyx.txt and those in directories as /dir/xyz.txt

that seems not to be a problem in a lot of cases, but is in 1 that I face

@simonh1000 simonh1000 changed the title sftp error with files at root level upload with absolute or relative paths? Jan 20, 2024
@simonh1000 simonh1000 changed the title upload with absolute or relative paths? upload with absolute or relative paths for remote files? Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Welcome feedback My PRs would benefit from 'review'
Projects
None yet
Development

No branches or pull requests

1 participant