public createFilesystem ( $path = null ) : Kraken\Filesystem\FilesystemInterface | ||
return | Kraken\Filesystem\FilesystemInterface |
public function createFilesystem($path = null)
{
$factory = new FilesystemAdapterFactory();
return new Filesystem($factory->create('Local', [['path' => $path !== null ? $path : $this->path]]));
}