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

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

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

Errors

  • if the file couldn’t be opened