Serialization for file tree class