mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
more explanatory / clear error messages for lntree
This commit is contained in:
parent
459ba3d93c
commit
b7e8c6b9e1
@ -826,15 +826,19 @@ function do_lntree($from,$to)
|
||||
|
||||
if (!file_exists($from))
|
||||
{
|
||||
usage("Directory '$from' does NOT exist!");
|
||||
usage("Source directory '$from' does NOT exist!");
|
||||
}
|
||||
elseif ($to[0] != '/' || file_exists($to))
|
||||
elseif ($to[0] != '/')
|
||||
{
|
||||
usage("Directory '$to' does not exist!");
|
||||
usage("Destination directory '$to' must be an absolute path on host filesystem and accessible inside the container!");
|
||||
}
|
||||
elseif (file_exists($to))
|
||||
{
|
||||
usage("Destination directory '$to' MUST NOT exist!");
|
||||
}
|
||||
elseif (!is_writable(dirname($to)))
|
||||
{
|
||||
usage("Directory '$to' is not writable!");
|
||||
usage("Destination directory '$to' can not be created! Check it's mounted into the container (most easy use a directory inside /var/lib/egroupware).");
|
||||
}
|
||||
Vfs::find($from, array(
|
||||
'url' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user