Working on different file storages with Flysystem

Code
<?php

use League\Flysystem\Filesystem;
use 
League\Flysystem\Adapter\Local;

/*
 files
    source
        file.txt
    target
*/
$dir __DIR__;

// exchangeble adapter makes it possible to
// change local filesystem with different ones
$adapter = new Local($dir);

$fs = new Filesystem($adapter);

if (
$fs->has('files')) {
    echo 
'Current location of file.txt';
    
dump(
        
$fs->listContents('files/source'),
        
$fs->listContents('files/target')
    );

    
$fs->rename('files/source/file.txt''files/target/file.txt');

    echo 
'Location of file.txt after moving';
    
dump(
        
$fs->listContents('files/source'),
        
$fs->listContents('files/target')
    );
    
    
$fs->delete('files/target/file.txt');
    
    echo 
'After deleting file.txt';
    
dump(
        
$fs->listContents('files/source'),
        
$fs->listContents('files/target')
    );
    
    
$fs->deleteDir('files/source');
    
$fs->deleteDir('files/target');
    
    echo 
'After deleting both directories';
}

dump($fs->listContents('files'));
Result
Current location of file.txt
array:1 [
0 => array:8 [
"type" => "file"
"path" => "files/source/file.txt"
"timestamp" => 1498596241
"size" => 12
"dirname" => "files/source"
"basename" => "file.txt"
"extension" => "txt"
"filename" => "file"
]
]

[]

Location of file.txt after moving
[]

array:1 [
0 => array:8 [
"type" => "file"
"path" => "files/target/file.txt"
"timestamp" => 1498596241
"size" => 12
"dirname" => "files/target"
"basename" => "file.txt"
"extension" => "txt"
"filename" => "file"
]
]

After deleting file.txt
[]

[]

After deleting both directories
[]
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6