Skip to content

Commit e4b0f0a

Browse files
Merge pull request #84 from Laravel-Lang/patch/2025-02-16/22-43
File filter is deleted when copying
2 parents af98506 + 8596ca3 commit e4b0f0a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Processors/Download/Copy.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use DragonCode\Support\Facades\Filesystem\Directory;
66
use DragonCode\Support\Facades\Filesystem\File;
77
use DragonCode\Support\Facades\Filesystem\Path;
8-
use DragonCode\Support\Facades\Helpers\Arr;
9-
use DragonCode\Support\Facades\Helpers\Str;
108
use LaravelLang\StatusGenerator\Processors\Processor;
119

1210
class Copy extends Processor
@@ -44,9 +42,7 @@ protected function process(string $path, array $files): void
4442

4543
protected function files(string $path): array
4644
{
47-
$files = File::names($path, recursive: true);
48-
49-
return Arr::filter($files, fn (string $filename) => Str::startsWith($filename, 'en'));
45+
return File::names($path, recursive: true);
5046
}
5147

5248
protected function tempDirectory(): string
@@ -56,7 +52,10 @@ protected function tempDirectory(): string
5652

5753
protected function targetPath(string $filename): string
5854
{
59-
return $this->getSourcePath($this->getProjectParameter() . '/' . $this->getVersionParameter() . '/' . $filename, false);
55+
return $this->getSourcePath(
56+
$this->getProjectParameter() . '/' . $this->getVersionParameter() . '/' . $filename,
57+
false
58+
);
6059
}
6160

6261
protected function targetDirectory(string $project, string $version): string

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy