title: How to exclude folders from downloading using wget?
body: <p>How can i exclude folders from being downloaded using wget ? For example if i wanted to download all of the files and folders of a subfolder:</p>
  
  <p><a href="https://index.org" rel="nofollow noreferrer">https://index.org</a> has the following folders:</p>
  
  <pre><code>Folder1    
    -subfolder1    
      --file1    
    -subfolder2    
      --file2    
    -subfolder3    
      --file3    
  Folder2    
    -subfolder1
  </code></pre>
  
  <p>For example I want to download only subfolder 3 from the Folder1.</p>
  
  <p>I tried:</p>
  
  <pre><code>wget -r -np https://index.org/Folder1 -X /subfolder1, /subfolder2
  </code></pre>