Skip to content

Commit

Permalink
Merge pull request #1724 from jnoordsij/filesystem-copy-move-visibili…
Browse files Browse the repository at this point in the history
…ty-enhancement

Ignore visibility by default on copy/move in Filesystem
  • Loading branch information
frankdejonge authored Nov 7, 2023
2 parents 45c1e8e + 15a6981 commit 11571a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ private function pipeListing(string $location, bool $deep, iterable $listing): G

public function move(string $source, string $destination, array $config = []): void
{
$config = $this->config->extend($config);
$config = $this->config
->extend([Config::OPTION_VISIBILITY => null])
->extend($config);
$from = $this->pathNormalizer->normalizePath($source);
$to = $this->pathNormalizer->normalizePath($destination);

Expand All @@ -138,7 +140,9 @@ public function move(string $source, string $destination, array $config = []): v

public function copy(string $source, string $destination, array $config = []): void
{
$config = $this->config->extend($config);
$config = $this->config
->extend([Config::OPTION_VISIBILITY => null])
->extend($config);
$from = $this->pathNormalizer->normalizePath($source);
$to = $this->pathNormalizer->normalizePath($destination);

Expand Down

0 comments on commit 11571a7

Please sign in to comment.