I need to pass a subtitle path to VLC, it only takes native paths (backslashes on Windows, forward slashes on Unix) and needs space escaping.
Let's say I have a Qt native path with a space in it.
C:/Users/Thinkpad/Downloads/test file.srt
How do I convert it into this:
C:\\Users\\Thinkpad\\Downloads\\test\ file.srt