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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Flush storage.

@param string $storage Default 'global'.
Flush storage .