[TYPO3-dev] FAL: how to get list of files in a folder
Alexander Stehlik
alexander.stehlik at gmail.com
Tue Nov 25 08:47:58 CET 2014
Hi Francois,
in the Storage Object there is a method for getting the file
identifieres of a folder recursively:
\TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getStorageObject($storageUid)->getFileIdentifiersInFolder($folderIdentifier,
$useFilters, $recursive);
If you want file objects you can use:
\TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->getStorageObject($storageUid)->getFilesInFolder($folder,
$start, $maxNumberOfItems, $useFilters, $recursive)
I hope this helps.
Cheers,
Alex
--
Alexander Stehlik
alexander.stehlik at gmail.com
More information about the TYPO3-dev
mailing list