pub fn as_file(path: PathBuf) -> PathBuf
path as a host other than the command line means it: - is a file of that name, since only the command line reads standard input.
path
-