845
847
parent_id is the transaction id of the parent directory of the file.
846
848
contents is an iterator of bytestrings, which will be used to produce
850
853
trans_id = self._new_entry(name, parent_id, file_id)
851
856
self.create_file(contents, trans_id)
852
857
if executable is not None:
853
858
self.set_executability(executable, trans_id)