* Filemanager: treat GoodSync _gsdata_ directory as hidden / not shown by default

This commit is contained in:
Ralf Becker 2019-01-09 17:53:31 +01:00
parent 989c263596
commit 910019c13b

View File

@ -366,7 +366,7 @@ class Vfs
}
/**
* Check if file is hidden: name starts with a '.' or is Thumbs.db
* Check if file is hidden: name starts with a '.' or is Thumbs.db or _gsdata_
*
* @param string $path
* @param boolean $allow_versions =false allow .versions or .attic
@ -376,7 +376,8 @@ class Vfs
{
$file = self::basename($path);
return $file[0] == '.' && (!$allow_versions || !in_array($file, array('.versions', '.attic'))) || $file == 'Thumbs.db';
return $file[0] == '.' && (!$allow_versions || !in_array($file, array('.versions', '.attic'))) ||
$file == 'Thumbs.db' || $file == '_gsdata_';
}
/**