Arguments:
- * source: str | arvados.arvilfe.ArvadosFile |
+ * source: str | arvados.arvfile.ArvadosFile |
arvados.collection.Subcollection --- The file or subcollection to
add to this collection. If `source` is a str, the object will be
found by looking up this path from `source_collection` (see
You may only have one file object from the Collection open at a time,
so be sure to close the object when you're done. Using the object in
- a with statement makes that easy::
+ a with statement makes that easy:
- with cwriter.open('./doc/page1.txt') as outfile:
- outfile.write(page1_data)
- with cwriter.open('./doc/page2.txt') as outfile:
- outfile.write(page2_data)
+ with cwriter.open('./doc/page1.txt') as outfile:
+ outfile.write(page1_data)
+ with cwriter.open('./doc/page2.txt') as outfile:
+ outfile.write(page2_data)
"""
if filename is None:
streampath, filename = split(streampath)