public static function flush(string $storage = 'global'): void
    {
        $filenames = scandir(self::$path . '/' . $storage);
        if (count($filenames) > 0) {
            foreach ($filenames as $filename) {
                if (substr($filename, 0, 1) === '.') {
                    continue;
                }
                @unlink(self::$path . '/' . $storage . '/' . $filename);
            }
        }
    }