Function autocompress::autodetect_async_open_or_stdin
source · pub async fn autodetect_async_open_or_stdin<P: AsRef<Path>>(
path: Option<P>
) -> Result<impl AsyncRead>
Available on crate feature
tokio_fs
only.Expand description
Open a file or standard input, and automatically select suitable decoder from magic number.
If path
is None
, standard input is used.