We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
transferring file A via standard SFTP to server A takes 5 mins.
Using StfpEx with the recommended stream syntax it takes ~85 minutes
def upload_file(conn, destination, source) do File.stream!(source) |> Stream.into(SftpEx.stream!(conn,destination)) |> Stream.run end
The text was updated successfully, but these errors were encountered:
Try streaming in byte chunks as opposed to default lines. See docs for example.
Sorry, something went wrong.
I made the changethat @tolyo suggeted, and worked like a charm. It started to be so quickly!
Just changed the File.Stream!(source) for
File.Stream!(source)
File.stream!(source, [], 2048)
Also, I think we can close the issue, what do you think?
No branches or pull requests
transferring file A via standard SFTP to server A takes 5 mins.
Using StfpEx with the recommended stream syntax it takes ~85 minutes
def upload_file(conn, destination, source) do
File.stream!(source)
|> Stream.into(SftpEx.stream!(conn,destination))
|> Stream.run
end
The text was updated successfully, but these errors were encountered: