It tested the resolved path but removed the lexical one, so a link could make the two differ. It now removes the folder's real path plus the name, refuses if either spelling is in a trash folder, and removes that name's preview. History checks a trash folder again at the open, since a preview can be a link.