When doing a recursive download with Wget the whole directory structure is saved, starting with the domain/hostname and then working down the directory tree inside it.
Preventing this action and downloading recursively into a directory is done using the cut dir command.
This is its syntax:
--cut-dirs=
Along with the no host parameter which is
-nH
This cuts out the hostname only from your targetted address.
If I was downloading from this address
https://website.com/folder/another/here
The files would be stored in https://website.com/folder/another/here folder structure, however using
-nH --cut-dirs=1
Would recursively download the files into /another/here
-nH --cut-dirs=2
would go into /here
Using just
-nH
Saves into /folder/another/here
A drained and empty Kennington reservoir images from a drone in early July 2024. The…
Merrimu Reservoir from drone. Click images to view larger.
Using FTP and PHP to get an array of file details such as size and…
Creating and using Laravel form requests to create cleaner code, separation and reusability for your…
Improving the default Laravel login and register views in such a simple manner but making…
Laravel validation for checking if a field value exists in the database. The validation rule…