def to_textfiles(b, path, name_function=None, compression='infer', encoding=system_encoding, compute=True):
 out = write_bytes(b.to_delayed(), path, name_function, compression, encoding=encoding)
 if compute:
  from dask import delayed
  delayed(out).compute()
 else:
  return out

def to_textfiles ( b , path , name_function = None , compression = 'infer' , encoding = system_encoding , compute = True ) : out = write_bytes ( b . to_delayed ( ) , path , name_function , compression , encoding = encoding ) if compute : from dask import delayed delayed ( out ) . compute ( ) else : return out
write bag to disk .