optimize what mkdir returns when their is a file with the same name with it
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ function mdir($commands)
|
||||
if (sizeof($commands) == 2) {
|
||||
if (!opendir("fileroot" . $pwd . "/" . $commands[1])) {
|
||||
if (!mkdir("fileroot" . $pwd . "/" . $commands[1])) {
|
||||
file_put_contents("recent.txt", "Error creating directory.No permissions?<br/>", FILE_APPEND);
|
||||
file_put_contents("recent.txt", "Error creating directory.No permissions or already exists.<br/>", FILE_APPEND);
|
||||
}
|
||||
} else {
|
||||
file_put_contents("recent.txt", "Directory already exists.<br/>", FILE_APPEND);
|
||||
|
||||
Reference in New Issue
Block a user