title: How to get all images in a folder using CakePHP
body: <p>I am trying get all images which are located in standard cakePHP image folder. I am using:</p>
  
  <pre><code>App::uses('Folder', 'Utility');
  App::uses('File', 'Utility');
  $dir = new Folder('/app/webroot/img/');
  $files = $dir-&gt;find('.*\.png');
  
  pr($files);
  </code></pre>
  
  <p>but i always get empty array. Where is the problem?</p>
  
  <p>Ina addition when I try make dir in that folder i get error:</p>
  
  <pre><code>mkdir(): No such file or directory [CORE\Cake\Utility\Folder.php, line 515]
  </code></pre>