Gets metadata from files