- simplified mkDir

This commit is contained in:
steinm 2011-07-23 12:25:37 +00:00
parent 9aa4fc277f
commit 6c366b20ac

View File

@ -49,6 +49,14 @@ class LetoDMS_Core_File {
function makeDir($path) {
if( !is_dir( $path ) ){
$res=@mkdir( $path , 0777, true);
if (!$res) return false;
}
return true;
/* some old code
if (strncmp($path, DIRECTORY_SEPARATOR, 1) == 0) {
$mkfolder = DIRECTORY_SEPARATOR;
}
@ -91,7 +99,7 @@ class LetoDMS_Core_File {
}
return true;
*/
}
function removeDir($path) {