New files not visible via python file query


I’m trying out RaiDrive to acces files on a synology NAS at another location via WebDav on windows10 x64.
When I browse to the folder via windows explorer, new files created from another connection than mine show up immediately (or after a second), but when I use python to query the content of a folder, the new files are not listed.
I use the Network drive option in RaiDrive settings.
The python command used is os.listdir(DIR_PATH_STRING).
It seems files are only synced after the query, because it I run the following code it works, but it is super ugly:
content = os.listdir(DIR_PATH_STRING)

Is there a way to fix this?


Jean-Paul Tossings