答案1
我刚刚尝试了你所描述的方法,WinSCP 报告错误:
General failure (server should provide error description).
Error code: 4
Error message from server: Failure
我所做的是创建一个文件夹thing
,然后尝试将两个文件的选择移动到thing*.*
(而不是 WinSCP 提供的thing/*.*
)。第一个文件被重命名为我的目标目录名称,但带有文件的原始后缀。其余文件保持不变。看看 WinSCP 调试,我可以想象,如果您有两个或多个文件,每个文件都有不同的后缀,它们都将成功重命名以匹配目录名,每个文件都保留其原始文件后缀:
. 2021-03-22 15:47:49.200 Moving file "do2a.eml" to "/home/roaima/thing.eml".
> 2021-03-22 15:47:49.201 Type: SSH_FXP_RENAME, Size: 58, Number: 5394
…
. 2021-03-22 15:47:49.205 Moving file "do2b.eml" to "/home/roaima/thing.eml".
> 2021-03-22 15:47:49.205 Type: SSH_FXP_RENAME, Size: 58, Number: 5650
…
< 2021-03-22 15:47:49.207 Type: SSH_FXP_STATUS, Size: 24, Number: 5650
< 2021-03-22 15:47:49.207 Status code: 4, Message: 5650, Server: Failure, Language:
. 2021-03-22 15:47:49.208 Asking user:
. 2021-03-22 15:47:49.208 Error moving file 'do2b.eml' to '/home/roaima/thing.eml'. ("General failure (server should provide error description).
结果
test1.txt → thing.txt
test2.txt → [error]
和
test1.txt → thing.txt
test2.lst → thing.lst
other.exe → thing.exe
您应该找到您的文件,尽管具有公共扩展名的每个选择的第一个文件可能已被重命名为类似于原始目标目录名称。