<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Megumi221</author_name>
  <author_url>https://blog.hatena.ne.jp/Megumi221/</author_url>
  <blog_title>理想のユーザ・インターフェイスを求めて</blog_title>
  <blog_url>https://ideal-user-interface.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>UNIX</anon>
    <anon>C</anon>
  </categories>
  <description>システムコールを使ってファイル操作をするCのプログラムを作成する。特定のディレクトリ内のファイルとディレクトリをすべて削除したい。unlink()を使えばファイルは消すことができる。また、rmdir()を使えば空のディレクトリは消すことができる。しかし、中味があるディレクトリだと消すことはできないので、中味を消してからディレクトリを消すしか方法はない。なので、階層が深いと面倒な処理が必要になると思われる。全部考えると複雑なので、できることを組合わせて、最終的な目的を達成できるようにしたい。方針を以下のように定めた。 プログラムの方針 まず、ディレクトリの探索を再帰的に行うようにする。 探索で見…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fideal-user-interface.hatenablog.com%2Fentry%2F20120330%2F1333082803&quot; title=&quot; 特定のディレクトリ以下、すべてのファイルとディレクトリを削除する - 理想のユーザ・インターフェイスを求めて&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>http://www.assoc-amazon.jp/e/ir?t=00toyota01-22&amp;l=ur2&amp;o=9</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-30 13:46:43</published>
  <title> 特定のディレクトリ以下、すべてのファイルとディレクトリを削除する</title>
  <type>rich</type>
  <url>https://ideal-user-interface.hatenablog.com/entry/20120330/1333082803</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
