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