The document that I am writing includes lots of paths to files. Many of them have blank spaces that I am powerless to remove since they originate outside of my domain of control. But the \path{} command that this document uses actually butchers those paths by removing blank spaces. \path{C:\My Documents} outputs MyDocuments`. I am not sure who thought that it was a good idea or even acceptable to alter the command's argument.
I cannot simply switch to \texttt{} because this would require escaping lots of backslashes, underscores, dollar signs, etc, all over the document.
How can I fix the result of the \path{} command?

\pathcommand I know is in TikZ, obviously you are not referring to this one. – Nov 21 '20 at 17:43\pathcommand? I don't think it's part of standardLaTeX. – Ian Thompson Nov 21 '20 at 17:43