Skip to content

Commit

Permalink
Handle root symlinks better
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jun 5, 2016
1 parent f8c747f commit d94b118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Adapter/Local.php
Expand Up @@ -71,6 +71,7 @@ class Local extends AbstractAdapter
*/
public function __construct($root, $writeFlags = LOCK_EX, $linkHandling = self::DISALLOW_LINKS, array $permissions = [])
{
$root = is_link($root) ? realpath($root) : $root;
$this->permissionMap = array_replace_recursive(static::$permissions, $permissions);
$realRoot = $this->ensureDirectory($root);

Expand Down

0 comments on commit d94b118

Please sign in to comment.