title: Automated way to derive files within rails public directory without knowing the file names
body: <p>Let us say that I have a rails app, and I have multiple files stored in the rails app within the <code>public/images</code> directory.</p>
  
  <p><strong>Question:</strong> Is there a way an end user could get access to images stored within the <code>public</code> directory without the user happening to brute-force guess what the image file names are?  </p>
  
  <ul>
  <li>For example: is there some trick where a user could list all the files within the <code>public</code> directory of a rails app?  </li>
  </ul>
  
  <p>I am aware that you <strong>NEVER</strong> store sensitive files inside the <code>public</code> directory because it has no access control.  I'm just curious if it is possible to access the <code>public</code> directory contents in some clever way without already knowing the directory/file structure.  I'm wondering if there is a clever way to <em>derive</em> the directory/file structure within the public directory. </p>