I need help to read the file path which is as below:
file = os.listdir(“C:/Users/username/OneDrive - Company Name/Documents/Project Name/projectid/projectfolder/”)
In the above example when i try to access this path, i am getting exception as below : [WinError 3] The system cannot find the path specified:
C:/Users/username/OneDrive - Company Name/Documents/Project Name/projectid/projectfolder/"
As the "OneDrive " is been added in our company systems , i am unable to access previous paths which were not with “OneDrive”
Ex: C:/Users/username/Documents/Project Name/projectid/projectfolder/ path was accessible earlier but when one drive is been introduced, now i am not able to read the filepath completely from os.listdir to read the path present with OneDrive - Company Name
Can any one please help me to resolve this issue for windows?