Skip to content

[BUG] - Crash when local directory does not exist #319

@acpoppe

Description

@acpoppe

Description

When trying to connect, at least through SCP, to a remote host, the application will crash if the provided Default Local Working Directory does not exist.

Steps to reproduce

  1. Enter a non-existent directory in the Default Local Working Directory text box
  2. Fill in connection details for the remote host
  3. Press Enter

Expected behaviour

A clear and concise description of what you expected to happen.

Environment

  • OS: MacOS
  • Architecture: Arm
  • Rust version: 1.83
  • termscp version: 0.16.1
  • Protocol used: SCP
  • Remote server version and name: Any

Log

thread 'main' panicked at src/filetransfer/host_bridge_builder.rs:14:47: Failed to create Localhost: HostError { error: NoSuchFileOrDirectory, ioerr: None, path: Some("/as;dfasdf") } note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions