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

panic: sftp: "Failure" (SSH_FX_FAILURE) #18

Open
aiyijing opened this issue May 4, 2021 · 3 comments
Open

panic: sftp: "Failure" (SSH_FX_FAILURE) #18

aiyijing opened this issue May 4, 2021 · 3 comments
Milestone

Comments

@aiyijing
Copy link

aiyijing commented May 4, 2021

Here is my code:

	err = client.Upload("./test.txt", "/root/")
	if err != nil {
		panic(err)
	}

it will raise error(sftp: "Failure" (SSH_FX_FAILURE)) when remotePath is not full path.
It is necessary to adapt the path without a file name

@melbahja
Copy link
Owner

melbahja commented May 4, 2021

Hi, It should be like:

err = client.Upload("./test.txt", "/root/test.txt")

@aiyijing
Copy link
Author

aiyijing commented May 4, 2021

I'm sorry,I know how to do it.
this is my suggestion: it should support
transferring files when the path is incomplete.
It's like:
😄

scp ./test.txt root@exampleHost:/root/

@melbahja melbahja added this to the v2 milestone May 5, 2021
@melbahja
Copy link
Owner

melbahja commented May 5, 2021

why not in v2 😄

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

2 participants