protected function getFileList($dir)
	{
		$finder = new Finder();
		$iterator = $finder
			->ignoreDotFiles(false)
			->files()
			->sortByName()
			->in($dir)
		;

		$files = array();
		foreach ($iterator as $file)
		{
			/** @var \SplFileInfo $file */
			$files[] = str_replace(DIRECTORY_SEPARATOR, '/', substr($file->getPathname(), strlen($dir) + 1));
		}

		return $files;
	}
protected function getFileList($dir)
	{
		$finder = new Finder();
		$iterator = $finder
			->ignoreDotFiles(false)
			->files()
			->sortByName()
			->in($dir)
		;

		$files = array();
		foreach ($iterator as $file)
		{
			/** @var \SplFileInfo $file */
			$files[] = str_replace(DIRECTORY_SEPARATOR, '/', substr($file->getPathname(), strlen($dir) + 1));
		}

		return $files;
	}
protected function getFileList ( $ dir ) { $ finder = new Finder ( ) ; $ iterator = $ finder -> ignoreDotFiles ( false ) -> files ( ) -> sortByName ( ) -> in ( $ dir ) ; $ files = array ( ) ; foreach ( $ iterator as $ file ) { /** @var \SplFileInfo $file */ $ files [ ] = str_replace ( DIRECTORY_SEPARATOR , '/' , substr ( $ file -> getPathname ( ) , strlen ( $ dir ) + 1 ) ) ; } return $ files ; }
Returns a list of files in the directory

@param	string	$dir	Directory to go through
@return	array	List of files
Returns a list of files in the directory