# File lib/fpm/source/dir.rb, line 7
  def get_metadata
    self[:name] = File.basename(File.expand_path(root))
  end