First, this patch adds a function for setting attributes for the current file. Second, it adds a function for specifically setting the "like" attribute.