switch {
    case os.IsNotExist(err):
    case err != nil:
        return fmt.Errorf("unable to access path %q: %w", path, err)
    default: