distrax.utils.fileio.append_file_in_folder#

distrax.utils.fileio.append_file_in_folder(folder, file_to_update, files_to_append)[source]#

Append file_to_update with the files in files_to_append.

Write the contents of the files_to_append into the file_to_update, the files must be from the same folder.

Parameters:
  • folder (str) – Where the files are stored

  • file_to_update (str) – File to update

  • files_to_append (List[str]) – The files to append

Return type:

None

Examples

cat ./file1

hi

cat ./file2

hi

>>> distrax.utils.fileio.append_file_in_folder(".", "file1", ["file2"])

cat ./file1

hin hi