Use `(testpath/sub_path).write(sub_content)` instead.