phprs\util\FileOp::tempdir PHP Method

tempdir() public method

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