I'm trying to delete a non-empty directory in Ruby and no matter which way I go about it it refuses to work.
I have tried using FileUtils, system calls, recursively going into the given directory and deleting everything, but always seem to end up with (temporary?) files such as
Realised my error, some of the files hadn't been closed. I earlier in my program I was using
which I swapped for a
f = File.open(filename, "r") while line = f.gets puts line end f.close