Writing large files into GS export contexts hogs RAM
'writeDataFile', which cannot be efficiently implemented for large
files: it requires that the content of the file be in memory as a string.
Some contexts might be able to support a more efficient pattern,
returning a file handle (or file-like object) which can be used for chunked
writes. The attached patch allows such contexts to implement a new
It also implements that interface for DirectoryContext.