Skip to main content

reader_for_path

Function reader_for_path 

Source
pub async fn reader_for_path(
    path: impl AsRef<Path>,
) -> Result<Box<dyn AsyncBufRead + Unpin + Send>>
Expand description

Opens a given path, with special-casing for - as stdin.