Copy, move, delete files and many more: Filesystem class

Code
<?php

// not using real filesystem @see http://vfs.bovigo.org/
include(__DIR__ DIRECTORY_SEPARATOR 'vfsstream.php');

use 
Symfony\Component\Filesystem\Filesystem;

$fs = new Filesystem();

$dir $rootDir '/fs';
$fs->mkdir($dir0775);
echo 
'Directory fs created' PHP_EOL;

var_dump($fs->exists($dir '/Library.php'));

$fs->copy($rootDir '/files/php/lib/Library.php',
    
$dir '/Library.php');

var_dump($fs->exists($dir '/Library.php'));
Result
Directory fs created
bool(false)
bool(true)
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6