I have to take in a file path that looks like this:
'C:/Users/xxx/Desktop/test_folder'
It gets stored into a variable as a string so:
path_intake = 'C:/Users/xxx/Desktop/test_folder'
I want to assign that path to my
p = Path(path_intake)
But, When p
takes in path_intake
it changes the path to:
'C:\Users\xxx\Desktop\test_folder'
Which is not what I want since .rglob
can only read the path like this:
p = Path(C:/Users/xxx/Desktop/test_folder)
How to obtain this path by taking in the first path?