diff --git a/src/Command/FsCopyCommand.php b/src/Command/FsCopyCommand.php index 1d2806d..d317f23 100644 --- a/src/Command/FsCopyCommand.php +++ b/src/Command/FsCopyCommand.php @@ -54,9 +54,11 @@ public function execute(InputInterface $input, OutputInterface $output) $group = $input->getOption('group'); $mask = $input->getOption('mask'); - $output->WriteLn("Copying $src to $dest"); - if (!file_exists($src)) { - throw new RuntimeException("Source file not exists: " . $src); + //$output->WriteLn("Copying $src to $dest"); + if (substr($src, 0, 5)!='data:') { + if (!file_exists($src)) { + throw new RuntimeException("Source file not exists: " . $src); + } } $dirname = dirname($dest); if (!file_exists($dirname) && !in_array($dirname, ['.', '..'])) {