src/Core/DirectoryManager.php
public static function GetFileNames($dir, $filters = array()) {
        $filenames = array_diff(scandir($dir), array('..', '.'));
        if (count($filters > 0)) {
            $filenames = self::FilterArray($filenames, $filters);
        }
        return $filenames;
    }
public static function GetFileNames($dir, $filters = array()) {
        $filenames = array_diff(scandir($dir), array('..', '.'));
        if (count($filters > 0)) {
            $filenames = self::FilterArray($filenames, $filters);
        }
        return $filenames;
    }
public static function GetFileNames ( $ dir , $ filters = array ( ) ) { $ filenames = array_diff ( scandir ( $ dir ) , array ( '..' , '.' ) ) ; if ( count ( $ filters > 0 ) ) { $ filenames = self :: FilterArray ( $ filenames , $ filters ) ; } return $ filenames ; }
Get the file paths for the current directory

@param string $dir
Directory value to scan.
@return array
List of files found in directory scanned.
Get the file paths for the current directory