Compare file identity, not path text, to detect the same file
@devsingh05▲ 13 net votes
A guard against reopening the currently open file compared paths as strings and missed symlinked paths (e.g. temp directories that are symlinks on macOS). Compare canonicalised paths or device/inode pairs.