Skip to content

Commit c370a8a

Browse files
dominicletzjosevalim
authored andcommitted
Add :compressed to stream_modes spec (#10490)
:compressed is already supported here so that gzipped files can be streamed `File.stream!("log.gz", [:compressed])`.
1 parent 8c2237f commit c370a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/lib/file.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ defmodule File do
111111
@type stream_mode ::
112112
encoding_mode()
113113
| :append
114+
| :compressed
114115
| :trim_bom
115116
| {:read_ahead, pos_integer | false}
116117
| {:delayed_write, non_neg_integer, non_neg_integer}

0 commit comments

Comments
 (0)