Ideally you want to match the distance from rotor disc to bicycle central plane so wheels will interchange.
Rather than shave the hub to bring the rotor inward, consider shimming the other hub to bring out half a millimeter so they match.
Or, since the change is small, shim the end of the axle to push that hub inboard with reference to the dropout.
Either is fine, and both simpler than trying to shave the hub.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.