Adam Akhtar wrote: > Im going to be making and removing lots of directories using ruby and Im > feeling a bit uneasy about it. One of my fears is that a potential typo > after refactoring, cutting and pasting etc could cause my program to > delete innocent and system vital directories. > > This creation and deletion code will be spread around my project and not > just one place which makes it more prone to errors. If you think that's a problem, then why not refactor it into one place and test the heck out of it? > For instance my > tests will have to constantly remove any directories created during > testing. Yeah, that's common. I use the Tempfile module for this. > > Am i just being paranoid or do you black belt ruby developers have a few > tricks to guard yourself from this hazzard? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen / marnen.org -- Posted via http://www.ruby-forum.com/.