mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-12 14:09:19 +01:00
"ignore hidden files"
This commit is contained in:
parent
d27a63033c
commit
5b2da78e32
@ -158,6 +158,7 @@ class filemanager_select
|
|||||||
$content['dir'] = array('mode' => $content['mode']);
|
$content['dir'] = array('mode' => $content['mode']);
|
||||||
while (($name = readdir($d)))
|
while (($name = readdir($d)))
|
||||||
{
|
{
|
||||||
|
if ($name[0] == '.' || $name == 'Thumbs.db') continue; // ignore hidden files
|
||||||
$path = egw_vfs::concat($content['path'],$name);
|
$path = egw_vfs::concat($content['path'],$name);
|
||||||
$is_dir = egw_vfs::is_dir($path);
|
$is_dir = egw_vfs::is_dir($path);
|
||||||
if ($content['mime'] && !$is_dir && egw_vfs::mime_content_type($path) != $content['mime'])
|
if ($content['mime'] && !$is_dir && egw_vfs::mime_content_type($path) != $content['mime'])
|
||||||
|
Loading…
Reference in New Issue
Block a user