protected static function scandirJob(string $path): ?array
    {
        if (!\is_dir($path)) {
            return null;
        }
        
        $entries = @\glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT);
        
        return ($entries === false) ? null : $entries;
    }
protected static function scandirJob(string $path): ?array
    {
        if (!\is_dir($path)) {
            return null;
        }
        
        $entries = @\glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT);
        
        return ($entries === false) ? null : $entries;
    }
protected static function scandirJob ( string $ path ) : ? array { if ( ! \ is_dir ( $ path ) ) { return null ; } $ entries = @ \ glob ( $ path . \ DIRECTORY_SEPARATOR . '*' , \ GLOB_NOSORT ) ; return ( $ entries === false ) ? null : $ entries ; }
Scan the given directory using sync fuctions.
Scan the given directory using sync fuctions .