fn has_shell_extension(path: &Path) -> boolExpand description
Whether the file name ends in a shell extension. Trailing spaces and dots are ignored first, because
Windows strips them when it opens or launches the path (codex.cmd runs codex.cmd through cmd.exe).