Here both sides have lost the e-pawn, so the whole e-file is completely clear.
That makes it a road. And a rook on a road is worth roughly twice a rook that is boxed in.
Now only White's e-pawn has gone. Black still has one, sitting on e7.
So this file is not open. It is half-open, and it is half-open for White.
Which is often better than open. There is something standing on that road to attack, and a pawn cannot run away.
So the test is a count. How many pawns stand on this file, and whose are they?
None at all, and the file is open for both. One of theirs, and it is half-open for you.
One of yours, and it is half-open for them, and you should be slightly worried about it.
Pawns decide which files are roads. Rooks collect whatever is at the end of them.
A file is open when it has no pawns on it. Not no pieces. No pawns.