Add basic implementation of FileMetadata
Restrict cases in which metadata is updated