def get_file_relative_path_by_name(self, name, skip=<NUM_LIT:0>):
if skip is None:<EOL><INDENT>paths = []<EOL><DEDENT>else:<EOL><INDENT>paths = None<EOL><DEDENT>for path, info in self.walk_files_info():<EOL><INDENT>_, n = os.path.split(path)<EOL>if n==name:<EOL><INDENT>if skip is None:<EOL><INDENT>paths.append(path)<EOL><DEDENT>elif skip><NUM_LIT:0>:<EOL><INDENT>skip -= <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>paths = path<EOL>break<EOL><DEDENT><DEDENT><DEDENT>return paths<EOL>
Get file relative path given the file name. If file name is redundant in different
directories in the repository, this method ensures to return all or some of the
files according to skip value.

Parameters:
    #. name (string): The file name.
    #. skip (None, integer): As file names can be identical, skip determines
       the number of satisfying files name to skip before returning.\n
       If None is given, a list of all files relative path will be returned.

:Returns:
    #. relativePath (string, list): The file relative path.
       If None, it means file was not found.\n
       If skip is None a list of all found files relative paths will be returned.