Fix regression -- wfMkdirParents() started whining if target directory existed, instead of just giving the thumbs-up
This commit is contained in:
parent
7ad7cab40f
commit
b3813f456a
1 changed files with 2 additions and 0 deletions
|
|
@ -1665,6 +1665,8 @@ function wfTempDir() {
|
|||
function wfMkdirParents( $fullDir, $mode = 0777 ) {
|
||||
if( strval( $fullDir ) === '' )
|
||||
return true;
|
||||
if( file_exists( $fullDir ) )
|
||||
return true;
|
||||
return mkdir( $fullDir, $mode, true );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue