def removeForwardSlash(path):
    """
        removes forward slash from path
        :param path: filepath
        :returns: path without final forward slash
    """
    if path.endswith('/'):
        path = path[:-1]
    return path