1

Say a directory or folder's path on a website is https://superuser.xyz/images/, but you don't know this right away. Ordinarily, webmasters don't make browsing of sub-folders available, i.e. the images folder would have no index.html file, so it would simply return a "folder not found" error if someone were to enter the URL in Chrome directly through guessing or sourcing any images' path.

Also, even if the directory were accessible through an index.html file, and you right click on that webpage and press Inspect or View Page Source Code, you could find the folder and its contents, but you can only save individual files in it one at a time in the Inspect view panel, which is inefficient.

In google Chrome windows 10, how do you download all batch contents of an online directory all at once, rather than one-by-one?

user610620
  • 197
  • 2
  • 3
  • 8
  • 1. Please read [Sources panel overview](https://developer.chrome.com/docs/devtools/javascript/sources/). 2. Related https://superuser.com/q/1442462/152004 – Rubén Jan 15 '22 at 00:06
  • There aren't any HTTP commands that will retrieve more than one file at a time. See the list of available HTTP/1.1 commands in RFC 2616. https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html – Frank Thomas Jan 15 '22 at 00:08
  • If either of you can form an answer that is step-by-step instructive to the question, I could award points. The links so far have been non-instructive to the question. – user610620 Jun 11 '22 at 07:12

1 Answers1

0

even without an index file browsers will be able to display the contents, but the server can be configured to disallow it

if the site allows for it you could try to use this solution in powershell: How to download a whole folder of files/subfolders from the web in PowerShell

for a solution on linux you could try this: CURL to download a directory

  • not sure what PowerShell is. If it's the modern equivalent of MS-DOS, have no idea how it can even interface to the internet. Hope you could explain how that would work. – user610620 Jun 11 '22 at 07:10
  • are you asking me how Powershell can 'interface to the internet'? or how to run the script in the link? – Chris Heath Jun 12 '22 at 14:24