Skip to content

Add some way to update/overwrite file contents (e.g updateFile(...)) #79

@alexcmgit

Description

@alexcmgit

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 = await updateFile(
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions