829
847
parent_id is the transaction id of the parent directory of the file.
830
848
contents is an iterator of bytestrings, which will be used to produce
834
853
trans_id = self._new_entry(name, parent_id, file_id)
835
856
self.create_file(contents, trans_id)
836
857
if executable is not None:
837
858
self.set_executability(executable, trans_id)