Parse and use metadata for file.