NEW Add dol_is_link function
This commit is contained in:
parent
39aef07c6b
commit
6b2bd93469
@ -454,6 +454,18 @@ function dol_is_file($pathoffile)
|
|||||||
return is_file($newpathoffile);
|
return is_file($newpathoffile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return if path is a symbolic link
|
||||||
|
*
|
||||||
|
* @param string $pathoffile Path of file
|
||||||
|
* @return boolean True or false
|
||||||
|
*/
|
||||||
|
function dol_is_link($pathoffile)
|
||||||
|
{
|
||||||
|
$newpathoffile=dol_osencode($pathoffile);
|
||||||
|
return is_link($newpathoffile);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return if path is an URL
|
* Return if path is an URL
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user