pub(crate) fn check_file_path(what: &str, path: &Path) -> Result<()>Expand description
Fail for a path of a request which cannot be a file the server writes:
one which is not absolute, see check_absolute, or one which does not
name a file, like / or one which ends in .., / or /.. Writing it
would fail anyway, but only once the container exited, when nobody gets
told anymore. Path::file_name alone would take the last two for the
file before them.