Re: Is it possible to get wget --content-disposition to overwrite an existing file.
Tim Rühsen <[email protected]> Sun, 3 Mar 2024 19:35:01 +0100
| Newsgroups | gmane.comp.web.wget.general |
|---|---|
| Message-ID | <[email protected]> |
On 2/25/24 03:40, Mark Sapiro wrote: > As far as I can tell, the only way to get wget to overwrite an existing > file is with the `-O` option, but I want to use `--content-disposition` > to write the output to the filename in the Content-Disposition: header. > This works, but if the filename already exists it writes to filename.1 > instead. Is there a way to get it to overwrite the existing file? > Wget tries not to overwrite files. But if you want to remove the old file, no matter what, why don't you remove (or rename) that file before calling wget? Regards, Tim
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEHLJ9vJhhSy1YQWRtCDAttqJnBCgFAmXkwtUFAwAAAAAACgkQCDAttqJnBCiE 4A/+JWFjwNRgY8fkL59DWIrc2aPWu48ZEEWVscJYa+ucE5H2eg7QSmENCgAcpt9AinR0NJlVWUDP CnWHpETLx6Td7z5GEwei7e/9qePMwHOA/Uud/Rnu7WdbkGPsODhlrzOi0cbtQrKSi2rHgXBuHOHj mymaIIKbt8P2imCj0RW7AXJDGX1OBbUZruNYn3YQjfJOLEFhDn078JnqBss5nicS/KekmUok2Cl3 OtJ2F0XoupD9AQEeFJfrqjuPxYICjjmqu+09o/d2Fgya+pZHkkMKFqDfEl8YyLlfcUzAfQ9f6pDF BLqlEs0z/JJppYD5zX3LixB1mZInkgCn4FaHNKgIADcHKXA6eBSieeQYK+Rgxzx0802WhiWEHihc lgB/FsimPNAyiXmbB0Hx83ORlQBhDiVyqcnTlPz+hK62mG//gyNGJatEh3HRIa6XAtWt+XmZCoMK a3EbXgZrIHxZlrbLX0JuKEnoxrlBHFS5k8SL8hB5CadtHttj4XXfmRnVyGsEYXaS1W7/bWleTMWZ Km9+CNaxbjnH8ETgkwFudv4QgLD16bzIYFWXcIukxq7Dg2vHQDllGN8W6uwyBEJj9moJmEzTmAwP kgPNbuAtNHcrrt44gZO205jou6cZqJh51I87ThWDgp38HoAsuOwmJSJ2ZT5uhZIS8jILmDhj1hic eIQ= =kz+i -----END PGP SIGNATURE-----