phprs\util\FileOp::tempdir PHP Méthode

tempdir() public méthode

临时目录
public tempdir ( string $dir, string $prefix ) : string
$dir string
$prefix string
Résultat string
    function tempdir($dir, $prefix)
    {
        $tempfile = tempnam($dir, $prefix);
        if (file_exists($tempfile)) {
            unlink($tempfile);
        }
        mkdir($tempfile);
        return $tempfile;
    }