Add mode to file metadata.