0

希望熟悉 Windows 上 wget 和 wput 的人知道这一点......

wput -v --remove-source-files --skip-existing --dont-continue %stfile% ftp://%ftpuser%:%ftppass%@%ftpserver%/inbound/%stfile%

基本上,如果文件已经存在于 ftp 站点上,这不应该尝试ftp 文件......但是文件不存在 - 并且它不会传输文件

--remove-source-files 就像是搬家一样,去掉还是不行--

如果文件在那里,它可以正常工作-

由于恢复/上传/跳过规则而跳过此文件。-- 跳过文件:%stfile% FINISHED --17:37:30-- 跳过 1 个文件。

这可能是一个错误,但谁知道......

wput 不像 wget 那样积极开发——

谢谢!

4

3 回答 3

0

对我来说听起来像是一个错误,但它在 Ubuntu 9.04 上运行良好。奇怪的。

在SourceForge提交错误报告。

于 2009-04-15T00:33:22.177 回答
0

晚了几年,但可能会帮助别人......

尝试使用 -v -d 运行以获取更多信息

wput file.ext ftp://User:pass@domain/path -v -d

你可能会发现它失败的原因是因为你使用一个空文件作为测试,在这种情况下你会看到这个

==> SIZE bob.txt ... ---->SIZE bob.txt
[550] 'File not found'
failed.
local_fsize: 0
target_fsize: 0
resume_table: 1,0,2
Skipping this file due to resume/upload/skip rules.
-- Skipping file: bob.txt
processing queue:
Connection ended. (14002c0)
Checking whether 332 is writable... 1 (0:No error)
---->QUIT
[221] 'Goodbye'
Closing socket 14002c0
FINISHED --15:17:16--
Skipped 1 file.

这似乎意味着如果没有要清理的文件,它将拒绝复制 0 大小的文件。

于 2012-01-20T13:22:49.330 回答
0

我遇到了同样的问题,结果我不得不用/.

于 2016-03-08T12:36:05.387 回答