ruby/import-atcsmon-territories/import_atcsmon_territories.rb
# Find all the territories in the specified directory.
Find all the territories in the specified directory.
Find all the territories in the specified directory .
def find_territories(root_territory_dir)
  files = {}
  if File.directory?("#{root_territory_dir}") && File.exist?(root_territory_dir)
    files = Dir.glob("#{root_territory_dir}/*.zip")
  else
    puts "Invalid directory: #{root_territory_dir}"
  end
  files
end
def find_territories ( root_territory_dir ) files = { } if File . directory? ( "#{root_territory_dir}" ) && File . exist? ( root_territory_dir ) files = Dir . glob ( "#{root_territory_dir}/*.zip" ) else puts "Invalid directory: #{root_territory_dir}" end files end
Find all the territories in the specified directory.
Find all the territories in the specified directory .
root_territory_dir
<not_specific>