If you are going to do this cast you need to check if it succeeded or you will cause a panic

`pathErr, ok := err.(*os.PathError); if ok {`