public function tempnam(): string
    {
        $root = $this->getFsRoot();
        do {
            ++$this->fsCounter;
            $name = $root.'/'.$this->fsCounter;
        } while (file_exists($name));

        return $name;
    }