title: Out-File -force, Intermediate directories are not created
body: <p>My code is:</p>
  
  <pre><code>$path = "c:\no-such-dir\00.txt"
  "foo" | Out-File -force -filePath $path
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>Out-File : Could not find a part of
    the path 'C:\no-such-dir\00.txt'</p>
  </blockquote>
  
  <p>help out-file -full</p>
  
  <blockquote>
    <p>For example, Force will override the
    read-only attribute or create
    directories to complete a file path,
    but it will not attempt to change file
    permissions.</p>
  </blockquote>
  
  <p>So it seems it should create 'no-such-dir', but it does not. What happens?</p>