Skip to content

Commit 26764c5

Browse files
committed
Fix file copyTo file permission usage
1 parent 9f0cb90 commit 26764c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/Local/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function copyTo($directory, int $mode = 0775)
7979
return $directory->createFile(
8080
$this->getName(),
8181
$this->read(),
82-
(int) $this->getPermission()
82+
$mode
8383
);
8484
}
8585

0 commit comments

Comments
 (0)