controllers/manager/findi18n.php
public function getFileSystemFiles( $relative_path, $only_dirs = false )
	{
		$files = array();

		// Extract directories:
		$iterator = new \DirectoryIterator( ROOT_PATH . "/$relative_path" );

		foreach ( $iterator as $file_info )
		{
			$file = $file_info->getFilename();

			// Exclude .svn, .cache and any other file starting with .
			if ( 0 !== strpos( $file, '.' ) )
			{
				if ( !$only_dirs || $file_info->isDir() )
				{
					$files[] = $file;
				}
			}
		}

		return $files;
	}
public function getFileSystemFiles( $relative_path, $only_dirs = false )
	{
		$files = array();

		// Extract directories:
		$iterator = new \DirectoryIterator( ROOT_PATH . "/$relative_path" );

		foreach ( $iterator as $file_info )
		{
			$file = $file_info->getFilename();

			// Exclude .svn, .cache and any other file starting with .
			if ( 0 !== strpos( $file, '.' ) )
			{
				if ( !$only_dirs || $file_info->isDir() )
				{
					$files[] = $file;
				}
			}
		}

		return $files;
	}
public function getFileSystemFiles ( $ relative_path , $ only_dirs = false ) { $ files = array ( ) ; // Extract directories: $ iterator = new \ DirectoryIterator ( ROOT_PATH . "/$relative_path" ) ; foreach ( $ iterator as $ file_info ) { $ file = $ file_info -> getFilename ( ) ; // Exclude .svn, .cache and any other file starting with . if ( 0 !== strpos ( $ file , '.' ) ) { if ( ! $ only_dirs || $ file_info -> isDir ( ) ) { $ files [ ] = $ file ; } } } return $ files ; }
Extracts from the filesystem all the files under a path.
If the flag only_dirs is set to true returns only the directories names.

@param string $relative_path
@param bool $only_dirs
@return array
Extracts from the filesystem all the files under a path . If the flag only_dirs is set to true returns only the directories names .