<?php
use Symfony\Component\Filesystem\Filesystem;
$fs = new Filesystem();
$dir = $rootDir . '/fs';
$fs->mkdir($dir, 0775);
echo 'Directory fs created' . PHP_EOL;
dump($fs->exists($dir . '/Library.php'));
$fs->copy($rootDir . '/files/php/lib/Library.php',
$dir . '/Library.php');
dump($fs->exists($dir . '/Library.php'));
^ false
^ true