What happens when a file is moved into a folder at the very moment that folder is trashed?
Either the move lands first and the file goes to the trash with the folder, or the trash lands first and the move is refused. A file is never left live inside a trashed folder.