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