Łukasz Niemier
unread,Feb 7, 2025, 5:58:01 AMFeb 7Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-lang-core
The reason for this is simple. There are some functionalities in Erlang that do not take Elixir's Streams into consideration (no surprise there), but it still would be useful to utilise them. In my particular case I am fetching file from S3 using ExAWS, which streams file content. That particular file is a Gzipped TAR, which I want to pass to `erl_tar` module. However the only way to do it right now is either create the file on disk or to fetch whole file into memory. But `erl_tar` accepts IO server as a source for the TAR file, which mean that if there would be a way to transform `Stream` into `StringIO` I would have a stream that could pass there and achieve streaming TAR decompression and unpacking.