private function list_directory( $dir ) {
		$dir_list = array();

		// Only add .mo/.po/.zip files
		foreach ( glob( $dir . '/*.{mo,po,zip}', GLOB_BRACE ) as $file ) {
			$dir_list[] = basename( $file );
		}

		return $dir_list;
	}
private function list_directory( $dir ) {
		$dir_list = array();

		// Only add .mo/.po/.zip files
		foreach ( glob( $dir . '/*.{mo,po,zip}', GLOB_BRACE ) as $file ) {
			$dir_list[] = basename( $file );
		}

		return $dir_list;
	}
private function list_directory ( $ dir ) { $ dir_list = array ( ) ; // Only add .mo/.po/.zip files foreach ( glob ( $ dir . '/*.{mo,po,zip}' , GLOB_BRACE ) as $ file ) { $ dir_list [ ] = basename ( $ file ) ; } return $ dir_list ; }
Create an array of the directory contents.

@param string $dir filepath

@return array $dir_list Listing of directory contents.
Create an array of the directory contents .