win32security.SetFileSecurity

SetFileSecurity(filename, info, security)

Sets information about the security of a file or directory. The information obtained is constrained by the caller's access rights and privileges.

Parameters

filename : string

The name of the file

info : int

The type of information to set.

security : PySECURITY_DESCRIPTOR

The security information