import codecs
from winsys import fs
base = 'c:/temp'
with codecs.open('permissions.log', 'wb', encoding='utf8') as log:
    for f in fs.flat(base):
        pass
Checking folder/file ntfs permissions using python