Writes a byte stream to path, replacing any file atomically.
stream
path
Future<void> writeStream(String path, Stream<List<int>> stream);