We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d237a1 commit 04fdafdCopy full SHA for 04fdafd
src/Traits/CopiesToBuildDirectory.php
@@ -10,9 +10,14 @@
10
namespace Native\Electron\Traits;
11
12
use RecursiveCallbackFilterIterator;
13
+use Symfony\Component\Filesystem\Path;
14
+
15
use RecursiveDirectoryIterator;
16
use RecursiveIteratorIterator;
17
use Symfony\Component\Filesystem\Filesystem;
18
+use Throwable;
19
20
+use function Laravel\Prompts\warning;
21
22
trait CopiesToBuildDirectory
23
{
@@ -98,7 +103,11 @@ public function copyToBuildDirectory()
98
103
continue;
99
104
}
100
105
101
- copy($item->getPathname(), $target);
106
+ try {
107
+ copy($item->getPathname(), $target);
108
+ } catch (Throwable $e) {
109
+ warning('[WARNING] ' . $e->getMessage());
110
+ }
102
111
112
113
$this->keepRequiredDirectories();
0 commit comments