Skip to content

How do you transfer to a remote server where the file does not exist yet ? #7

Open
@lowks

Description

@lowks

Do you have an example where I want to transfer to a remote system where the file does not exist and I do not want to over write any existing file but I want to create a new file ?

Example:

iex(13)> File.stream!("/Users/lowks/work/Radpath/LICENSE") |> Stream.into(SftpEx.stream!(conn, "/home/lowks/LICENSE")) |> Stream.run

13:11:11.334 [error] {:error, :no_such_file}

13:11:11.334 [error] {:error, :no_such_file}
** (BadFunctionError) expected a function, got: :no_such_file
    (elixir) lib/stream.ex:492: Stream.do_into/4
    (elixir) lib/stream.ex:591: Stream.run/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions