def fileid_to_publicid(path, userid):
    if ('..' in path):
        return '-1'
    path = bytes(path, 'latin-1')
    path = str(base64.b64encode(path), 'latin-1')
    return path
def fileid_to_publicid(path, userid):
    if ('..' in path):
        return '-1'
    path = bytes(path, 'latin-1')
    path = str(base64.b64encode(path), 'latin-1')
    return path