PHP mkdir( $recursive = true ) skips last directory

后端 未结 7 1996
南旧
南旧 2021-02-20 10:39

I\'ve got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server:

mkdir( $path, 0777, true );

when I enter a path like:

<
7条回答
  •  滥情空心
    2021-02-20 10:53

    Ok the solutions is as follows: there was no problem.

    I did not test the code in isolation, but only assumed the following code was not doing anything to the directory structure...

    as I found out the directory got deleted later on by the code itself.

    Anyway, Lesson learned...

提交回复
热议问题