public static function getFilesystemFilesInFolder(FilesystemFolder $folder) {

		$files = [];

		$glob = glob($folder->getPath() . '*', GLOB_NOSORT);

		if($glob !== FALSE) {

			foreach($glob as $f) {
				if(!is_dir($f)) {

					if(!isset(self::$instances[$f])) {
						self::$instances[$f] = new self(basename($f), $folder);
					}

					$files[] = self::$instances[$f];
				}
			}
		}

		return $files;
	}
public static function getFilesystemFilesInFolder(FilesystemFolder $folder) {

		$files = [];

		$glob = glob($folder->getPath() . '*', GLOB_NOSORT);

		if($glob !== FALSE) {

			foreach($glob as $f) {
				if(!is_dir($f)) {

					if(!isset(self::$instances[$f])) {
						self::$instances[$f] = new self(basename($f), $folder);
					}

					$files[] = self::$instances[$f];
				}
			}
		}

		return $files;
	}
public static function getFilesystemFilesInFolder ( FilesystemFolder $ folder ) { $ files = [ ] ; $ glob = glob ( $ folder -> getPath ( ) . '*' , GLOB_NOSORT ) ; if ( $ glob !== FALSE ) { foreach ( $ glob as $ f ) { if ( ! is_dir ( $ f ) ) { if ( ! isset ( self :: $ instances [ $ f ] ) ) { self :: $ instances [ $ f ] = new self ( basename ( $ f ) , $ folder ) ; } $ files [ ] = self :: $ instances [ $ f ] ; } } } return $ files ; }
return all filesystem files instances within a certain folder

@param FilesystemFolder $folder
@return Array filesystem files
return all filesystem files instances within a certain folder