def UpdateVFSFileAndWait(client_id, vfs_file_urn, token=None, timeout=DEFAULT_TIMEOUT):
 update_flow_urn = StartFlowAndWait(client_id, token=token, timeout=timeout, flow_name='UpdateVFSFile', vfs_file_urn=vfs_file_urn)
 update_flow_obj = aff4.FACTORY.Open(update_flow_urn, token=token, aff4_type=flow.GRRFlow)
 sub_flow_urn = update_flow_obj.state.get_file_flow_urn
 if (not sub_flow_urn):
  return
 WaitForFlow(sub_flow_urn, token=token, timeout=timeout)

def UpdateVFSFileAndWait ( client_id , vfs_file_urn , token = None , timeout = DEFAULT_TIMEOUT ) : update_flow_urn = StartFlowAndWait ( client_id , token = token , timeout = timeout , flow_name = 'UpdateVFSFile' , vfs_file_urn = vfs_file_urn ) update_flow_obj = aff4 . FACTORY . Open ( update_flow_urn , token = token , aff4_type = flow . GRRFlow ) sub_flow_urn = update_flow_obj . state . get_file_flow_urn if ( not sub_flow_urn ) : return WaitForFlow ( sub_flow_urn , token = token , timeout = timeout )
waits for a file to be updated on the client .