Add the `File::putContent()` method (see #5315)