mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Try to create missing target directory to avoid errors.
This commit is contained in:
parent
9a0b6a921b
commit
3a1b793ec2
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user