def getFolder(filename: str) -> str:
    """
    Returns the folder on which the given path is stored
    Args:
        filename: the path of the file

    Returns:
        the folder of the same given file
    """
    filename = filename.replace("\\", "/")

    try:
        filename = filename[0:-filename[::-1].index("/")]
    except:
        filename = ""

    return filename