When a web server (like Apache or Nginx) receives a request for a folder—for example, /downloads/

In this example, /home/user is the parent directory of /downloads .

In the black window that appears, type the following command: dir /b /s > index.txt

: Use the recursive mirror command to pull everything while staying within the current folder. wget -r -np -nH --cut-dirs=1 -R "index.html*"

/home/user/downloads