code: public static function setDir(string $path = "")
      {
          if ($path !== "") {
              $dir = new entity\DirEntity($path);
              if (!$dir->test(\sndsgd\Fs::READABLE | \sndsgd\Fs::WRITABLE)) {
                  throw new \InvalidArgumentException(
                      "invalid value provided for 'path'; ".$dir->getError()
                  );
              }
          }
          self::$dir = $path;
      }
docs: Set the root temp directory (overrides use of the system temp directory)
  
  @param string $path
  @return void
  @throws InvalidArgumentException If the provided path isn't usable