Can we create an object for file info rather than treating it as a list of properties?