Function tremor_common::asy::file::open[][src]

pub async fn open<S: ?Sized>(path: &S) -> Result<File, Error> where
    S: AsRef<Path>, 

A wrapper around File::open that will give a better error (including the filename)

Errors

  • if the file couldn't be opened