From: Antoine De Groote Date: 2007-04-09T04:35:11+09:00 Subject: File.delete -> Permission denied Hello, I'm new to Ruby (coming from Python) and I already have trouble. The following code (on Windows XP, Ruby 1.8.5): Dir.chdir 'c:/documents and settings/antoine/desktop' Dir.mkdir 'test' Dir.chdir 'test' %w{ a b c }.each { |f| File.open(f+'.txt', 'w').close } Dir.foreach('.') { |f| File.delete f } throws this error message: problem.rb:5:in `delete': Permission denied - . (Errno::EACCES) from problem.rb:5 from problem.rb:5:in `foreach' from problem.rb:5 I've tried to find an answer to this strange behaviour for a couple of hours now, but I can't find one. Could anybody point me to a solution of the problem? Kind regards, antoine