title: Why does not File.deleteOnExit work with directory?
body: <p>Am I using <code>deleteOnExit</code> in a wrong way?</p>
  
  <p>I create a directory and then run:</p>
  
  <p><code>new File("my_dir_path").deleteOnExit();</code></p>
  
  <p>But the directory is never removed after JVM terminates without error, despite that JDK doc says <code>Requests that the file or directory denoted by this abstract pathname be deleted when the virtual machine terminates.</code></p>