Skip to content

Operations::Upload! errors if destination filename has spaces #159

Description

@ttilberg
sftp = Net::SFTP.open(...)
sftp.upload!("local/file 2025-10-27.zip", "remote/file 2025-10-27.zip")

raises Net::SFTP::StatusException: (3, "permission denied").

After converting the space to a dash worked, so I think it's because it's being interpreted as an additional filename. The upload! command seems to imply a 1:1 upload of a single file, so perhaps the filename can be quoted when it's sent to the server.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions