public static function files(String $path, $extension = NULL, Bool $pathType = false) : Array
    {
        $path = Info::rpath($path);

        if( ! is_dir($path) )
        {
            throw new FolderNotFoundException($path);
        }

        return Filesystem::getFiles($path, $extension, $pathType);
    }
public static function files(String $path, $extension = NULL, Bool $pathType = false) : Array
    {
        $path = Info::rpath($path);

        if( ! is_dir($path) )
        {
            throw new FolderNotFoundException($path);
        }

        return Filesystem::getFiles($path, $extension, $pathType);
    }
public static function files ( String $ path , $ extension = NULL , Bool $ pathType = false ) : Array { $ path = Info :: rpath ( $ path ) ; if ( ! is_dir ( $ path ) ) { throw new FolderNotFoundException ( $ path ) ; } return Filesystem :: getFiles ( $ path , $ extension , $ pathType ) ; }
Used to retrieve a list of files and directories within a directory.
If it is desired to list files with a certain extension between the files to be listed,
the file extension for the second parameter can be used.

@param string $path
@param mixed  $extension = NULL
@param bool   $pathType  = false

@return array
Used to retrieve a list of files and directories within a directory . If it is desired to list files with a certain extension between the files to be listed the file extension for the second parameter can be used .