# File lib/win32/file.rb, line 742 def self.remove_attributes(file, flags) attributes = GetFileAttributes(file) if attributes == INVALID_FILE_ATTRIBUTES raise ArgumentError, get_last_error end attributes &= ~flags if SetFileAttributes(file, attributes) == 0 raise ArgumentError, get_last_error end self end