Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/filesystem/src/FlySystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

use function class_exists;

use const LOCK_EX;

class FlySystemAdapter implements FileSystem
{
public function __construct(
Expand All @@ -34,11 +36,11 @@ public static function createForPath(string $path): self
{
if (class_exists(Local::class)) {
/** @phpstan-ignore-next-line */
$filesystem = new FlysystemV1(new LeagueFilesystem(new Local($path)));
$filesystem = new FlysystemV1(new LeagueFilesystem(new Local($path, LOCK_EX, Local::SKIP_LINKS)));
} else {
$filesystem = new FlysystemV3(
new LeagueFilesystem(
new LocalFilesystemAdapter($path),
new LocalFilesystemAdapter($path, linkHandling: LocalFilesystemAdapter::SKIP_LINKS),
),
);
}
Expand Down
Loading