src/Dir/Dir.php
public static function tempnam($path = null, $prefix = '')
    {
        if ($path === null) {
            $path = sys_get_temp_dir();
        }

        if ($tempfile = tempnam($path, $prefix)) {
            unlink($tempfile);
            mkdir($tempfile);
        }

        return $tempfile;
    }
public static function tempnam($path = null, $prefix = '')
    {
        if ($path === null) {
            $path = sys_get_temp_dir();
        }

        if ($tempfile = tempnam($path, $prefix)) {
            unlink($tempfile);
            mkdir($tempfile);
        }

        return $tempfile;
    }
public static function tempnam ( $ path = null , $ prefix = '' ) { if ( $ path === null ) { $ path = sys_get_temp_dir ( ) ; } if ( $ tempfile = tempnam ( $ path , $ prefix ) ) { unlink ( $ tempfile ) ; mkdir ( $ tempfile ) ; } return $ tempfile ; }
Creates a directory with unique file name.

@see http://php.net/manual/en/function.tempnam.php

@param  string $path   The directory where the temporary filename will be created.
@param  string $prefix The prefix of the generated temporary filename.
@return string
Creates a directory with unique file name .