win32file.SetFileAttributesW

SetFileAttributesW(FileName, FileAttributes, Transaction)

Sets a file's attributes

Parameters

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.

Comments

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.