Kraken\_Module\Filesystem\FilesystemTest::createFilesystem PHP Method

createFilesystem() public method

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]]));
    }