I have some file shares which had problems with the permissions in the past. I need to monitor them now, daily.
For this, I wanted to build a script in Python which automates that for me.
I can't get it working. And I don't know why and can't find a solution for it.
import os
paths = [r'\\10.0.0.0\Share$', r'\\10.0.0.1\Share$']
for path in paths:
print os.access(path, os.R_OK)
This returns True for both, but if I open them in the explorer, I can't connect to them because I don't have the rights. Both should return False.
I am also open for other solutions than os.access()