library/Garp/Adobe/InDesign/Storage.php
public static function createTmpDir() {
        $tmpDir = sys_get_temp_dir();
        $tmpDir .= $tmpDir[strlen($tmpDir) - 1] !== '/' ? '/' : '';
        $tmpDir .= uniqid() . '/';
        if (mkdir($tmpDir)) {
            return $tmpDir;
        } else {
            throw new Exception('Could not create directory ' . $tmpDir);
        }
    }
public static function createTmpDir() {
        $tmpDir = sys_get_temp_dir();
        $tmpDir .= $tmpDir[strlen($tmpDir) - 1] !== '/' ? '/' : '';
        $tmpDir .= uniqid() . '/';
        if (mkdir($tmpDir)) {
            return $tmpDir;
        } else {
            throw new Exception('Could not create directory ' . $tmpDir);
        }
    }
public static function createTmpDir ( ) { $ tmpDir = sys_get_temp_dir ( ) ; $ tmpDir .= $ tmpDir [ strlen ( $ tmpDir ) - 1 ] !== '/' ? '/' : '' ; $ tmpDir .= uniqid ( ) . '/' ; if ( mkdir ( $ tmpDir ) ) { return $ tmpDir ; } else { throw new Exception ( 'Could not create directory ' . $ tmpDir ) ; } }
Creates a temporary directory for .idml construction.

@return  string  The path to this dir, including trailing slash.
Creates a temporary directory for . idml construction .