Skip to content

Commit

Permalink
Dynamic separator for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 24, 2020
1 parent 81851e5 commit 5b56283
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public function __construct(FilesystemOperator $driver, FlysystemAdapter $adapte
$this->driver = $driver;
$this->adapter = $adapter;
$this->config = $config;
$this->prefixer = new PathPrefixer($config['root'] ?? '');
$this->prefixer = new PathPrefixer(
$config['root'] ?? '', $config['directory_separator'] ?? DIRECTORY_SEPARATOR
);
}

/**
Expand Down

0 comments on commit 5b56283

Please sign in to comment.