Пример #1
0
 /**
  * Removes temporary directory
  *
  * @throws \League\Flysystem\FileExistsException
  */
 public function __destruct()
 {
     $fs = new Filesystem(new Local(dirname($this->getPathPrefix())));
     $fs->deleteDir(basename($this->getPathPrefix()));
     $fs->assertAbsent($this->getPathPrefix());
 }