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

not able to make a put of a directory? #18

Closed
msalvarez opened this issue May 23, 2016 · 2 comments
Closed

not able to make a put of a directory? #18

msalvarez opened this issue May 23, 2016 · 2 comments
Assignees

Comments

@msalvarez
Copy link

at first thanks for the work.
I want to use this library to move something downloaded in a raspberry to a server and it can be files or directories, but it fail when i'm trying to make a put of a directory, the error is:
"{ [Error: EISDIR: illegal operation on a directory, read] errno: -21, code: 'EISDIR', syscall: 'read' }"
it's not going to be able to make a scp of a directory or is a fail?

@steelbrain
Copy link
Owner

Hi @msalvarez. Unfortunately by design sftp only allows transfer of one file at a time. Though we could create a sugar method that does this for you

@steelbrain steelbrain self-assigned this May 23, 2016
@msalvarez
Copy link
Author

Thanks so much Steelbrain,meanwhile I will use another library for the SCP part .
I would help you with this sugar method, but my node's skill are really limited.

steelbrain pushed a commit that referenced this issue Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants