jaap 👍️
PS! You shouldn't need to use (\/|^)
or (\/|$) though, because files_exclude
only checks the file name, not the path. When using (\/|^)
and (\/|$), you are basically also checking for a path reference. This should be sufficient:
'files_exclude' => '/^(folder.png|folder.txt|foldername.txt|private.txt|private.png|.DS_Store)$/i',