diff --git a/vpc.mappings.rb b/vpc.mappings.rb index d9cc6a8..09a7146 100644 --- a/vpc.mappings.rb +++ b/vpc.mappings.rb @@ -68,7 +68,7 @@ def self.getMaps(config) end end @@maps = maps - FileUtils.mkpath (File.dirname (cached_mappings_path )) unless File.exists? (File.dirname (cached_mappings_path)) + FileUtils.mkpath (File.dirname (cached_mappings_path )) unless File.exist? (File.dirname (cached_mappings_path)) File.write(cached_mappings_path, maps.to_yaml) return maps end @@ -85,4 +85,4 @@ def self.getDefaultKey end -end \ No newline at end of file +end