Comment vérifier si un dossier existe dans Chef?

C'est mon code:

if !::File.exist?("#{node['iis']['home']}\\backup\\BkpB4Chef")
 windows_batch "Backup IIS Config" do
  code <<-EOH
   "#{node['iis']['home']}"\\appcmd add backup BkpB4Chef
  EOH
 end
end

Il dit toujours que le fichier existe et s'exécute la boucle.

source d'informationauteur Sony Koithara | 2013-08-22