SetFileAttributesW(FileName, FileAttributes, Transaction)

Sets a file's attributes


FileName : PyUNICODE

File or directory whose attributes are to be changed

FileAttributes : int

Combination of FILE_ATTRIBUTE_* flags

Transaction=None : PyHANDLE

Handle to the transaction. See win32transaction::CreateTransaction.


If Transaction is not None, SetFileAttributesTransacted will be called (requires Vista or later)

Accepts keyword arguments.

Win32 API References

Search for SetFileAttributes at msdn, google or google groups.

Search for SetFileAttributesTransacted at msdn, google or google groups.