Skip to content

Navigation Menu

Sign in
Sign up

High-level features/use-cases research #132

alexcmgit started this conversation in General
Discussion options

Note
If you want to request some feature, you can include in the issue comments!

To see details, refer to #56.

The following features will be available on the next major release:

  • Pick a folder.
  • List files within a picked folder.
  • Deleted files within a picked folder.
  • Create a file within a picked folder.
  • Write to a file within a picked folder.
  • Read a file within a picked folder.
You must be logged in to vote

Replies: 4 comments

Comment options

One thing that I think would definitely be worth having is the ability to append an existing file, and to access a file as a seekable stream without having to copy it all into RAM.

You must be logged in to vote
0 replies
Comment options

alexcmgit
Jun 30, 2022
Maintainer Author

@EternityForest Do you have any examples showing how it (seekable stream) works? Would like to see it working.

Also, any further links will be helpful, I'm not aware of this kind of API.

You must be logged in to vote
0 replies
Comment options

@EternityForest Is #91 this what you need for a stream based API? I'm not aware of seekable streams in dart, so this is the best you can get I guess.

You must be logged in to vote
0 replies
Comment options

I would also love stream support. The stream does not need to be seekable. It is just so I can copy a file to public memory without having to read it fully into memory when using documentFile.writeToFileAsBytes. Ideally, the documentFile.writeToFile would also accept a stream.

For getting the stream, it seems you can follow this recipe (using virtual files): https://developer.android.com/training/data-storage/shared/documents-files#open-virtual-file
I have not tried it yet though..

Then wrap it with a dart Stream adapter

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Converted from issue

This discussion was converted from issue #57 on June 04, 2023 07:19.

AltStyle によって変換されたページ (->オリジナル) /