I have a Microsoft Excel file on OneDrive. When my Python script saves anything to the file and the file is already open, OneDrive raises an error, telling me there is a sync issue.
If the file is closed(not in use by another user), everything works great.
Is there was a way to check if the file is currently in use by another person?
I forgot to mention that the file on onedrive is a shortcut to a sharepoint file.