<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoquo</author_name>
  <author_url>https://blog.hatena.ne.jp/quoquo/</author_url>
  <blog_title>プログラミング忘備録と日記と時々育児の話</blog_title>
  <blog_url>https://quoquo.hatenablog.com/</blog_url>
  <categories>
    <anon>Tips</anon>
    <anon>Java</anon>
  </categories>
  <description>File.deleteは中身があるとFalseが返ってきてしれっと終わるから… なのですが、org.apache.commonsにいると思ったらいなかった。Tomcat7ではdeleteDirectoryはutil.http.fileuploadにいた。。。 ので、こいつをimportしておく↓org.apache.tomcat.util.http.fileupload.FileUtils ディレクトリ削除系のメソッドはこんな感じに // 例えばこんなフォルダがあるとしてString path = System.getProperty(&quot;user.dir&quot;) + File.separator …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fquoquo.hatenablog.com%2Fentry%2F2017%2F12%2F17%2F221111&quot; title=&quot;Javaでフォルダ内のファイルごとフォルダ削除したい場合はdeleteDirectoryが便利 - プログラミング忘備録と日記と時々育児の話&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-17 22:11:11</published>
  <title>Javaでフォルダ内のファイルごとフォルダ削除したい場合はdeleteDirectoryが便利</title>
  <type>rich</type>
  <url>https://quoquo.hatenablog.com/entry/2017/12/17/221111</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
