diff --git a/cake/libs/file.php b/cake/libs/file.php index 6d01fa29f55..cc69c2122ec 100644 --- a/cake/libs/file.php +++ b/cake/libs/file.php @@ -102,7 +102,7 @@ function __construct($path, $create = false, $mode = 0755) { $this->name = basename($path); } $this->pwd(); - !$this->exists() && $create && $this->safe($path) && $this->create(); + $create && !$this->exists() && $this->safe($path) && $this->create(); } /**