【问题标题】:wput on Windows ignoring --skip-existingwput 在 Windows 上忽略 --skip-existing
【发布时间】:2009-02-24 23:11:10
【问题描述】:

希望熟悉 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% 完成--17:37:30-- 跳过 1 个文件。

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

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

谢谢!

【问题讨论】:

  • 这一定是一个错误,我还没有时间提交错误报告等,最终使用了winscp

标签: windows ftp cmd


【解决方案1】:

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

SourceForge 提交错误报告。

【讨论】:

    【解决方案2】:

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

    尝试使用 -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 大小的文件。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,结果我不得不用/ 终止路径。

      【讨论】:

        猜你喜欢
        • 2018-10-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-07-10
        • 1970-01-01
        相关资源
        最近更新 更多