I am using the SF2 Finder Component to access a directory and grab the subdirectories inside it.
This is my code:
$finder = new Finder();
$dirs = $finder->directories()->in($this->getParameter('crmpicco.image_upload_path'));
The image_upload_path contains 3 directories: /small, /medium and /large
When I dump out the dirs attribute of what Finder returns I get:
-dirs: array:1 [▼
0 => "/var/www/crmpicco/20150805093500/app/files/import_images"
]
How can I modify this call to access /small, /medium and /large ?
dirsis a private property, how are you accessing it? Can you please post the code that dump the results?