mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-01 16:41:23 +01:00
Try to create missing target directory to avoid errors.
This commit is contained in:
parent
3564a03529
commit
0bf0756a8e
@ -579,6 +579,14 @@ class filemanager_ui
|
|||||||
foreach((array)$selected as $target)
|
foreach((array)$selected as $target)
|
||||||
{
|
{
|
||||||
$link = egw_vfs::concat($dir, egw_vfs::basename($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 ($target[0] != '/') $target = egw_vfs::concat($dir, $target);
|
||||||
if (!egw_vfs::stat($target))
|
if (!egw_vfs::stat($target))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user