Try to create missing target directory to avoid errors.

This commit is contained in:
Nathan Gray 2014-09-01 21:23:04 +00:00
parent 9a0b6a921b
commit 3a1b793ec2

View File

@ -579,6 +579,14 @@ class filemanager_ui
foreach((array)$selected as $target)
{
$link = egw_vfs::concat($dir, egw_vfs::basename($target));
if (!egw_vfs::stat($dir) || ($ok = egw_vfs::mkdir($dir,0,true)))
{
if(!$ok)
{
$errs++;
continue;
}
}
if ($target[0] != '/') $target = egw_vfs::concat($dir, $target);
if (!egw_vfs::stat($target))
{