We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eeb5cb commit 95f39bcCopy full SHA for 95f39bc
src/Filesystem/Folder.php
@@ -535,7 +535,7 @@ public function create($pathname, $mode = false) {
535
if ($this->create($nextPathname, $mode)) {
536
if (!file_exists($pathname)) {
537
$old = umask(0);
538
- if (mkdir($pathname, $mode)) {
+ if (mkdir($pathname, $mode, true)) {
539
umask($old);
540
$this->_messages[] = sprintf('%s created', $pathname);
541
return true;
@@ -716,7 +716,7 @@ public function copy($options) {
716
717
if (is_dir($from) && !file_exists($to)) {
718
719
- if (mkdir($to, $mode)) {
+ if (mkdir($to, $mode, true)) {
720
721
722
chmod($to, $mode);
0 commit comments