如何在 WinSCP 中不通过临时文件夹下载文件?

如何在 WinSCP 中不通过临时文件夹下载文件?

我安装了 WinSCP(不是使用便携版)。我已经在 WinSCP 中禁用了此选项。但文件仍然先下载到临时文件夹,然后再剪切并粘贴到目标文件夹。我如何才能直接将文件下载到我想要的位置?

在此处输入图片描述

在此处输入图片描述


这里有一个更新,即“Shell 扩展已安装并加载”。但问题仍然存在。刷新 Windows 资源管理器后,正在下载的文件始终为 0 kB,而实际上已经下载了许多 MB。 在此处输入图片描述


这是日志文件。

. 2022-07-27 14:56:58.486 [Background 1] Copying 1 files/directories to local directory "D:\Users\xxxxxxx\Downloads\" - in parallel, with 1 total files - total size: 143,512,657,063
. 2022-07-27 14:56:58.486 [Background 1]   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: Yes; Mask: *.*
. 2022-07-27 14:56:58.486 [Background 1]   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2022-07-27 14:56:58.486 [Background 1]   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2022-07-27 14:56:58.486 [Background 1] File: '/xxxx/xxxxxxx/xxxxxxx/xxxxxxx.tar.bz2' [2022-06-10T21:31:41.000Z] [143512657063]
. 2022-07-27 14:56:58.486 [Background 1] Copying "/xxxx/xxxxxxx/xxxxxxx/xxxxxxx.tar.bz2" to local directory started.
. 2022-07-27 14:56:58.486 [Background 1] Binary transfer mode selected.
. 2022-07-27 14:56:58.486 [Background 1] Opening remote file.
> 2022-07-27 14:56:58.486 [Background 1] Type: SSH_FXP_OPEN, Size: 85, Number: 590083
< 2022-07-27 14:56:58.486 [Background 1] Type: SSH_FXP_STATUS, Size: 24, Number: 589828
. 2022-07-27 14:56:58.486 [Background 1] Discarding reserved response
< 2022-07-27 14:56:58.486 [Background 1] Type: SSH_FXP_HANDLE, Size: 13, Number: 590083
> 2022-07-27 14:56:58.486 [Background 1] Type: SSH_FXP_FSTAT, Size: 13, Number: 590344
< 2022-07-27 14:56:58.502 [Background 1] Type: SSH_FXP_ATTRS, Size: 37, Number: 590344
> 2022-07-27 14:56:58.502 [Background 1] Type: SSH_FXP_READ, Size: 25, Number: 590597
. 2022-07-27 14:57:15.616 [Background 1] 1683 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2022-07-27 14:57:15.616 [Background 1] Type: SSH_FXP_CLOSE, Size: 13, Number: 806148

答案1

“Shell 扩展已安装,但尚未加载”是关键。

如果是新安装,请尝试重新启动计算机。如果不是,请先尝试重新安装 WinSCP。

答案2

临时文件可能需要支持恢复,因此如果传输中断,用户不会得到被截断的文件。

尝试向 WinSCP 调用添加-resumesupport=off 无需恢复的传输参数。

相关内容