Skip to content

[BUG] - Current folder name also shown in remote files list #410

@gursuj

Description

@gursuj

Description

When using FTP, I found that upon entering a folder, the current folder name would also be shown in the files list. Trying to enter it shows the "loading remote directory" prompt and logs it too in the bottom right, but nothing happens (since it's the current dir). This could cause confusion when using termscp.

Steps to reproduce

  1. Connect to a remote directory (bug was encountered when using FTP)
  2. Enter any folder e.g: foo
  3. See that foo's files list also includes foo/

Expected behaviour

Current folder name should not be shown in files list

Environment

  • OS: Arch Linux
  • Architecture: x86_64
  • Rust version: 1.94
  • termscp version: 0.19.1
  • Protocol used: FTP
  • Remote server version and name: Linux 5.14.0-570.32.1.el9_6.x86_64 (using LiteSpeed web server)

Log

Additional information

Screenshot of termscp (inside wp-content folder showing the current folder too i.e. wp-content):

Image

Screenshot of gftp in the same folder, correctly showing the files list without wp-content/:

Image

Also, this issue occurs only when entering remote folders, not with local folders.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions