Helper function: add fileinfo attributes

add_file_info_attributes(obj, path)

Arguments

obj

object to write attributes to

path

path to file

Value

object with file info attributes