Check if pre-calculated path still available

I have a script that will calculate a character’s path and store it.(going through a door)
When the character is going towards the target position, the current path might be blocked by the door.(someone else closes the door).
Is there a way to know my current path is blocked?
My difficult is when I use CalculatePath to check,(after door closed)
It will return another further available path (going around the building).
I can’t check if current path is blocked.
sorry if my English is bad.

You say you store the path. In the object that stores the path, have a list of changeable obstacles like doors. Also, have a way to keep track of all current paths that are active. When a door status changes, simple loop through all your active paths that contain this door and update their status.