write_file()
Write the given text to a new file at the given path, stomping anything that might exist there.
text
path
path (Path) – The path to write to.
Path
text (str) – The text to write.
str
permissions (int) – The permissions to give the file.
int
path – The path the file was written to (as an absolute path).
pathlib.Path