Link deletion on windows


#1

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