title: recursively make directory tree in puppet without purging
body: <p>I want to create the directory structure <code>/var/www/apps/example/current/public</code> if it doesn't exist using puppet. If it already exists I don't want to purge the contents of the directories. How do I do this? Below is what I have so far:</p>
  
  <pre><code>file { "/var/www/apps/example/current/public":
    owner =&gt; 'deploy',
    group =&gt; 'users',
    ensure =&gt; "directory",
    purge =&gt; false,
    recurse =&gt; true
  }
  </code></pre>
  
  <p>This gives me</p>
  
  <pre><code> Cannot create /var/www/apps/example/current/public; parent directory /var/www/apps/example/current does not exist
  </code></pre>