When changing the lines
/** @var DirectoryIterator $file */
foreach (new DirectoryIterator($curPath) as $file) {
with
/** @var DirectoryIterator $file */
$di = new RecursiveDirectoryIterator($path);
foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
FileLister iterates recursivly into the subdirectories of a given path.
Changed
$filePath = $relPath.(!empty($relPath) ? '/' :
with
$filePath = str_replace($path, '', $filePath);
and the download links working.
I'm not a developer and I think this is a hack without knowing if I produced a security risk or other issues with that change...
Would be great if this functionality is integrated into FileLister.
Thanks.
When changing the lines
with
FileLister iterates recursivly into the subdirectories of a given path.
Changed
$filePath = $relPath.(!empty($relPath) ? '/' :with
$filePath = str_replace($path, '', $filePath);and the download links working.
I'm not a developer and I think this is a hack without knowing if I produced a security risk or other issues with that change...
Would be great if this functionality is integrated into FileLister.
Thanks.