Hi I have read articles related converting backward to forward slashes. But sol was to use raw string.
But Problem in my case is :
I will get file path dyna
Handling paths as a mere string could put you into troubles.; even more if the path you are handling is an user input or may vary in unpredictable ways.
Different OS have different way to express the path of a given file, and every modern programming language has own methods to handle paths and file system references. Surely Python and Ruby have it:
If you really need to handle strings: