def get_snapshot_paths(service):
 file_list = []
 if (service != 'cassandra'):
  return file_list
 look_for = 'snapshots'
 data_dir = '{0}/{1}'.format(APPSCALE_DATA_DIR, service)
 for (full_path, _, file) in os.walk(data_dir):
  if (look_for in full_path):
   file_list.append(full_path)
 logging.debug("List of data paths for '{0}': {1}".format(service, file_list))
 return file_list

def get_snapshot_paths ( service ) : file_list = [ ] if ( service != 'cassandra' ) : return file_list look_for = 'snapshots' data_dir = '{0}/{1}' . format ( APPSCALE_DATA_DIR , service ) for ( full_path , _ , file ) in os . walk ( data_dir ) : if ( look_for in full_path ) : file_list . append ( full_path ) logging . debug ( "List of data paths for '{0}': {1}" . format ( service , file_list ) ) return file_list
returns a list of file names holding critical data for the given service .