log.write('\n' + f.filepath.relative_to(base) + '\n')
for ace in f.security().dacl:
    access_flags = fs.FILE_ACCESS.names_from_value(ace.access)
log.write('  %s => %s\n' % (ace.trustee, ', '.join(access_flags)))
Checking folder/file ntfs permissions using python