Is there a single way of detecting if a directory/file/symlink/etc. entity (more generalized) exists?
I need a single function because I need to check an array of paths that could be directories, files or symlinks. I know …
Possible Duplicate:
How to create directories recursively in ruby?
In Ruby, how could I do:
mkdir -p cool/beans
Here's what I came up with:
Dir.mkdir('cool') unless File.directory?('cool')
cool_beans_path = File.join('cool', 'beans')
Dir.…