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