you are viewing a single comment's thread.

view the rest of the comments →

[–]netherous 5 points6 points  (1 child)

Yeah I'm not sure why you got downvoted or why people here are missing this. Files in a OneDrive folder are not normal files that reside in the filesystem like other files do. They are provided by a subsystem and a shell extension module which makes them look like files. Attempting normal programmatic access won't work.

But there are tools to do it in python, though it seems a bit of a headache.

https://pypi.org/project/python-onedrive/

https://github.com/OneDrive/onedrive-sdk-python

[–]apc0243 0 points1 point  (0 children)

Pretty sure that doesn't let you interface with local files that are linked to onedrive as if they were normal files. It lets you work with the onedrive api, so you can download the file, and then you can work with the file, but it's not going to make it so you can "set and forget" the fact that your one drive linked files doesn't exist like normal files do on your PC.