bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget2 with --no-clobber truncates exists files


From: Marco Marsala
Subject: wget2 with --no-clobber truncates exists files
Date: Thu, 24 Feb 2022 17:28:05 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1

Consider this working example:

# wget2 --no-clobber "running-gnu-parallel-while-files-exist" -O "/root/stackoverflow.html" --base "https://stackoverflow.com/questions/19571996/";

[0] Downloading 'https://stackoverflow.com/questions/19571996/running-gnu-parallel-while-files-exist' ...
File '/root/stackoverflow.html' already there; not retrieving.
HTTP response 200 OK [https://stackoverflow.com/questions/19571996/running-gnu-parallel-while-files-exist]

if /root/stackoverflow.html already exists, it gets truncated.

It doesn't happen with wget 1.

My wget version is 2.0.0:

# wget2 --version
GNU Wget2 2.0.0 - multithreaded metalink/file/website downloader

+digest +https +ssl/gnutls +ipv6 +iri +large-file +nls -ntlm -opie -psl -hsts
+iconv +idn +zlib -lzma -brotlidec -zstd -bzip2 -lzip -http2 -gpgme




reply via email to

[Prev in Thread] Current Thread [Next in Thread]