appendFile method
Append data
to an existing file of fileID
You may also provide the mime
type of the format to export the file in,
this defaults to plain text.
Optionally, you can provide a seperator
which will be added
between the existing data and the provided data
.
This defaults to a newline \n
.
Implementation
Future<void> appendFile(
String fileID,
String data, {
String mime = "text/plain",
String seperator = '\n',
}) async {
final oldData = (await exportFile(fileID, mime))!;
updateFile(fileID, oldData + seperator + data);
}