[chef] Link deletion on windows


Chronological Thread 
  • From: Thorsten Klein < >
  • To: " " < >
  • Subject: [chef] Link deletion on windows
  • Date: Mon, 11 Mar 2013 16:31:53 +0100
  • Accept-language: de-DE, en-US
  • Acceptlanguage: de-DE, en-US

Hi,

 

I started using chef on windows 7 (64bit) and noticed that I’m not able to delete a link that I created.

 

src_dir = "c:/tmp/blabla"

target_dir = "c:/tmp/blub"

 

link target_dir do

                to src_dir

                action :create

end

 

 

link target_dir do

                to src_dir

                action :delete

end

 

Gives an EACCESS error message although

 

if ::Dir.exists?(target_dir)

                ::Dir.delete(target_dir)

end

 

works perfectly fine.

 

Anyone already stumbled upon this behaviour or has a solution?

 

TIA

 

thorsten



  • [chef] Link deletion on windows, Thorsten Klein, 03/11/2013

Archive powered by MHonArc 2.6.16.

§