Feature request
Currently we can't overwrite/update the content of a given file we already have permissions over.
So the request is only to add an API which purpose is to receive a given uri and content or bytes as parameters and overwrite the content.
Sample usage:
final updatedFile =awaitupdateFile(
targetFile,
bytes:UintList.fromList('content in bytes'.codeUnits),
content:'...',
);This will permit edit only the file contents and not the file mime type.
Useful resources
Originally requested by @jfaltis at #61.
Feature request
Currently we can't overwrite/update the content of a given file we already have permissions over.
So the request is only to add an API which purpose is to receive a given
uriandcontentorbytesas parameters and overwrite the content.Sample usage:
This will permit edit only the file contents and not the file mime type.
Useful resources
Originally requested by @jfaltis at #61.