system "mkdir -p /foo/bar/baz blurf/quux" and do { ... it failed ... };