NEW Add dol_is_link function

This commit is contained in:
Laurent Destailleur 2018-04-25 17:59:05 +02:00
parent 39aef07c6b
commit 6b2bd93469

View File

@ -454,6 +454,18 @@ function dol_is_file($pathoffile)
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
*