jemnotesversion 2 / featuring this entry or see all/search

Dec 15
Here’s how to create a directory, if it doesn’t already exist. This works to an arbitrary depth—perfect for creating a whole hierachy straight away.
FileUtils.mkdir_p '/tmp/a/b/c/d/e/'
Apparently, it receives a list, too. Details here.