This seems like such a straightforward thing, but I'm struggling to find any information about this in the documentation or anywhere else.
I'm using KnpGaufretteBundle with the following settings in my config.yml
knp_gaufrette:
adapters:
images:
local:
directory: "%kernel.root_dir%/../web/uploads/images"
filesystems:
images:
adapter: images
The file structure at the path indicated above is
- images
- test1.gif
- test2.gif
- sub_directory1
- test3.gif
- sub_directory2
Note that there are two directories in the images folder, though one of them is empty. If I run listKeys() on the file mapper I get.
array:2 [
"keys" => array:3 [
0 => "sub_directory1/test3.gif"
1 => "test1.gif"
2 => "test2.gif"
]
"dirs" => array:1 [
0 => "sub_directory1"
]
]
The empty directory is now shown. Is there any way to get this information using Gaufrette?