<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saitodevel01</author_name>
  <author_url>https://blog.hatena.ne.jp/saitodevel01/</author_url>
  <blog_title>saito’s blog</blog_title>
  <blog_url>https://saitodevel01.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>プログラマの方々なら、ファイルを更新したときに自動的にあるアクションを実行したいと思うことが、一度はあると思います。 そのようなタスクを実行するプログラムを書くには、ファイルシステムを監視して、ファイルの更新を検知する必要があります。 ファイルの更新を検知する方法として、２つの方法が考えられます。 １つ目の方法は、一定時間間隔でファイルの更新時間をポーリングする方法、２つ目の方法は、OSのAPI(Linuxのinotify等)を使う方法です。 １つ目の方法の場合、監視したいファイルが少数の場合は問題ありませんが、監視したいファイルが増えた場合にパフォーマンスが悪化すると思われます。 ２つの方法…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaitodevel01.hatenadiary.org%2Fentry%2F20110515%2F1305472076&quot; title=&quot;Qt4のQFileSystemWatcherでファイルの更新検知を行う - saito’s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/saitodevel01/20110515/20110515235928.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-05-15 00:07:56</published>
  <title>Qt4のQFileSystemWatcherでファイルの更新検知を行う</title>
  <type>rich</type>
  <url>https://saitodevel01.hatenadiary.org/entry/20110515/1305472076</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
