mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- simplified mkDir
This commit is contained in:
parent
9aa4fc277f
commit
6c366b20ac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user