reana_workflow_controller/utils.py
def remove_upper_level_references(path):
    """Remove upper than `./` references.

    Collapse separators/up-level references avoiding references to paths
    outside working directory.

    :param path: User provided path to a file or directory.
    :return: Returns the corresponding sanitized path.
    """
    return os.path.normpath("/" + path).lstrip("/")
Remove upper than `./` references.

    Collapse separators/up-level references avoiding references to paths
    outside working directory.

    :param path: User provided path to a file or directory.
    :return: Returns the corresponding sanitized path.
    
Remove upper than `./` references.
Collapse separators/up-level references avoiding references to paths
outside working directory.
Remove upper than ` . / ` references . Collapse separators / up - level references avoiding references to paths outside working directory .
def remove_upper_level_references(path):
    return os.path.normpath("/" + path).lstrip("/")
def remove_upper_level_references ( path ) : return os . path . normpath ( "/" + path ) . lstrip ( "/" )
Remove upper than `./` references.
Remove upper than ` . / ` references .
"""Remove upper than `./` references.

    Collapse separators/up-level references avoiding references to paths
    outside working directory.

    :param path: User provided path to a file or directory.
    :return: Returns the corresponding sanitized path.
    """
Returns the corresponding sanitized path.
Returns the corresponding sanitized path .
path
User provided path to a file or directory.
User provided path to a file or directory .