code: def _get_dacl(path, objectType):
      '''
      Gets the DACL of a path
      '''
      try:
          dacl = win32security.GetNamedSecurityInfo(
              path, objectType, win32security.DACL_SECURITY_INFORMATION
              ).GetSecurityDescriptorDacl()
      except Exception:
          dacl = None
      return dacf _get_dacl(path, objectType):
      '''
      Gets the DACL of a path
      '''
      try:
          dacl = win32security.GetNamedSecurityInfo(
              path, objectType, win32security.DACL_SECURITY_INFORMATION
              ).GetSecurityDescriptorDacl()
      except Exception:
          dacl = None
      return dacl
docs: Gets the DACL of a path