You can't, from there. The path is not in that error, so you'll have to handle the error somewhere where you know the path, and create an error that contains both (enough information from) the io::Error and the Path.
A nice and easy way to do that is with the context method of the anyhow crate, like in the second example on the anyhow documentation front page.