public static function confirgure($base_directory)
    {
        if (static::$directory === null || static::$directory !== $base_directory) {
            static::$directory = $base_directory;
        }

        if (!is_dir($base_directory)) {
            @mkdir($base_directory, 0777);
        }
    }