What is the way to set multiple file-attributes using Python?
E.g. I want to set a file's attribute to System, Hidden.
I can use something like below, but it will just set just one attributes, and overwrite the previous write:
import win32con, win32api, os
filename = "some file name"
win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_SYSTEM)
win32api.SetFileAttributes(filename,win32con.FILE_ATTRIBUTE_HIDDEN)
This will end up with just Hidden attribute.
How do you set both attributes at once? Thanks.