def ComputeRebalanceSize(mapping, server_id):
 loc = data_store.DB.Location()
 if (not os.path.exists(loc)):
  return 0
 if (not os.path.isdir(loc)):
  return 0
 return _RecComputeRebalanceSize(mapping, server_id, loc, '')

def ComputeRebalanceSize ( mapping , server_id ) : loc = data_store . DB . Location ( ) if ( not os . path . exists ( loc ) ) : return 0 if ( not os . path . isdir ( loc ) ) : return 0 return _RecComputeRebalanceSize ( mapping , server_id , loc , '' )
compute size of files that need to be moved .