Api: Some tests for filesystem

This commit is contained in:
nathangray
2020-09-16 11:48:40 -06:00
parent 2ef359f0d0
commit 94a57d6902
4 changed files with 493 additions and 0 deletions

View File

@ -1867,6 +1867,10 @@ GROUP BY A.fs_id';
$ins_stmt = $del_stmt = null;
foreach($props as &$prop)
{
if(!array_key_exists('name', $prop))
{
return false; // Name is missing
}
if (!isset($prop['ns'])) $prop['ns'] = Vfs::DEFAULT_PROP_NAMESPACE;
if (!isset($prop['val']) || self::$pdo_type != 'mysql') // for non mysql, we have to delete the prop anyway, as there's no REPLACE!