Commons: Added method for setting file's attributes