This commit is contained in:
Laurent Destailleur 2010-11-06 17:07:06 +00:00
parent bf4b4c501e
commit f801c7463c

View File

@ -2838,13 +2838,13 @@ function yn($yesno, $case=1, $color=0)
/** /**
* \brief Return a path to have a directory according to an id * Return a path to have a directory according to an id
* \param $num Id to develop * Examples: '001' with level 3->"0/0/1/", '015' with level 3->"0/1/5/"
* \param $level Level of development (1, 2 or 3 level) * Examples: 'ABC-1' with level 3 ->"0/0/1/", '015' with level 1->"5/"
* \param $alpha Use alpha ref * @param $num Id to develop
* \param withoutslash 0=With slash at end, 1=without slash at end * @param $level Level of development (1, 2 or 3 level)
* \remarks Examples: '001' with level 3->"0/0/1/", '015' with level 3->"0/1/5/" * @param $alpha Use alpha ref
* \remarks Examples: 'ABC-1' with level 3 ->"0/0/1/", '015' with level 1->"5/" * @param withoutslash 0=With slash at end, 1=without slash at end
*/ */
function get_exdir($num,$level=3,$alpha=0,$withoutslash=0) function get_exdir($num,$level=3,$alpha=0,$withoutslash=0)
{ {
@ -2859,14 +2859,20 @@ function get_exdir($num,$level=3,$alpha=0,$withoutslash=0)
return $path; return $path;
} }
/** // For backward compatibility
* \brief Creation of a directory (recursive)
* \param $dir Directory to create
* \return int < 0 if KO, 0 = already exists, > 0 if OK
*/
function create_exdir($dir) function create_exdir($dir)
{ {
global $conf; dol_mkdir($dir);
}
/**
* Creation of a directory (recursive)
* @param $dir Directory to create
* @return int < 0 if KO, 0 = already exists, > 0 if OK
*/
function dol_mkdir($dir)
{
global $conf;
dol_syslog("functions.lib::create_exdir: dir=".$dir,LOG_INFO); dol_syslog("functions.lib::create_exdir: dir=".$dir,LOG_INFO);