Error in the example

This commit is contained in:
Fabrice Mouhartem 2022-07-25 14:12:01 +02:00
parent ee70d684ab
commit 37cf2ad7b7
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ Où `<n>` représente le la profondeur de recherche dans les sous-dossiers. Par
exemple, si l'on souhaite télécharger le contenu de ce blog sans télécharger les exemple, si l'on souhaite télécharger le contenu de ce blog sans télécharger les
images de couverture des articles situés à l'adresse “<https://blog.epheme.re/images/covers/>”, on peut utiliser cette commande: images de couverture des articles situés à l'adresse “<https://blog.epheme.re/images/covers/>”, on peut utiliser cette commande:
```sh ```sh
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/images/covers/ wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/
``` ```
Une méthode plus simple pour ce cas d'usage, si l'on n'a pas besoin de la Une méthode plus simple pour ce cas d'usage, si l'on n'a pas besoin de la

View File

@ -38,7 +38,7 @@ wget --recursive --no-parent --no-host-directories --cut-dirs=<n> --accept <exte
Where `<n>` denotes the number of subdirectories to omit from saving. For instance, to download the cover images from this blog at the address “<https://blog.epheme.re/images/covers/>”, you can put: Where `<n>` denotes the number of subdirectories to omit from saving. For instance, to download the cover images from this blog at the address “<https://blog.epheme.re/images/covers/>”, you can put:
```sh ```sh
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/images/covers/ wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/
``` ```
Anyhow, a simpler method, if you don't need the directory structure (for instance in the above example), is to use the `--no-directories/-nd` option. However, the cut-dirs can be useful if you need some architecture information (e.g., if the files are sorted in directories by date or categories) Anyhow, a simpler method, if you don't need the directory structure (for instance in the above example), is to use the `--no-directories/-nd` option. However, the cut-dirs can be useful if you need some architecture information (e.g., if the files are sorted in directories by date or categories)