I just need to refresh a folder. A hypothetical ideal example would be:
from aModule import refreshdir # fake
refreshdir("C:\path\to\directory")
Context: I am using Autodesk Desktop Connector, a service that sync data on the cloud with local folders. To avoid expending resources, this tool just checks for new updates when the user opens the file or refresh the directory (so manually). However, in order to automate some operations, I need to refresh the directory with Python. There is no API for this tool.
Thanks in advance! =)
Edit: New files can be added in the cloud. That's why it is important to refresh the folder. Example: Before refreshing: enter image description here After refreshing: enter image description here os.listdir cannot catch those highlited files before refreshing.