src/Viserio/Component/Filesystem/Filesystem.php
public function copy($originFile, $targetFile, $override = false): bool
    {
        try {
            parent::copy($originFile, $targetFile, $override);
        } catch (SymfonyFileNotFoundException $exception) {
            throw new FileNotFoundException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getPrevious()
            );
        } catch (SymfonyIOException $exception) {
            throw new ViserioIOException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getPrevious()
            );
        }

        return true;
    }
public function copy($originFile, $targetFile, $override = false): bool
    {
        try {
            parent::copy($originFile, $targetFile, $override);
        } catch (SymfonyFileNotFoundException $exception) {
            throw new FileNotFoundException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getPrevious()
            );
        } catch (SymfonyIOException $exception) {
            throw new ViserioIOException(
                $exception->getMessage(),
                $exception->getCode(),
                $exception->getPrevious()
            );
        }

        return true;
    }
{@inheritdoc}