[GH-ISSUE #2283] sftp ctrl+a delete 会删除当前目录下所有文件,包括不可见的隐藏文件 #1440

Closed
opened 2026-02-27 00:03:33 +03:00 by kerem · 0 comments
Owner

Originally created by @wxip on GitHub (Oct 13, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2283

Please check known issues first

https://github.com/electerm/electerm/wiki/Know-issues

Electerm version:

v1.16.21

Operating system(linux, macos, or windows7/8/10?):

windows11

Expected Behavior

只删除选中的文件

Can you reproduce the same behavior in other terminal:

可复现

Current Behavior

会删除当前目录下所有的文件,包括不可见的隐藏文件

Possible Solution

根据选中的文件名删除

Steps to Reproduce

  1. sftp打开一个带有隐藏文件的目录(.开头的文件)
  2. ctrl+a 选中所有文件
  3. delete 删除
  4. 未被选中的隐藏文件也被删除

Context (Environment)

/root中执行此操作会删除所有配置信息

Detailed Description

Suggestions?

Originally created by @wxip on GitHub (Oct 13, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2283 ## Please check known issues first https://github.com/electerm/electerm/wiki/Know-issues <!--- Provide some basic info --> ## Electerm version: v1.16.21 ## Operating system(linux, macos, or windows7/8/10?): windows11 ## Expected Behavior <!--- Tell me what should happen --> 只删除选中的文件 ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> 可复现 ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> 会删除当前目录下所有的文件,包括不可见的隐藏文件 ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> 根据选中的文件名删除 ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. sftp打开一个带有隐藏文件的目录(.开头的文件) 2. ctrl+a 选中所有文件 3. delete 删除 4. 未被选中的隐藏文件也被删除 ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> /root中执行此操作会删除所有配置信息 ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem 2026-02-27 00:03:33 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1440
No description provided.