Add a can_write function to PathV2.