<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Windows</anon>
  </categories>
  <description>ディレクトリ中のファイルを列挙するプログラムで列挙後のコードが実行されずに悩んでいたのですが、原因は検索ディレクトリ以下に含まれる循環したディレクトリのシンボリックリンクとtry構文による例外の握りつぶしでした。 ディレクトリに循環したシンボリックリンク（X:\a\bにあるX:\xへのシンボリックリンク）は検索が無限に続き、ファイル名の長さでIOException例外が発生して中断されます。通常は気付けるはずですが、例外を握りつぶすtry構文で囲んでいたからか（未確認ですが、WinFormsまたはBackgroundWorkerの影響？）例外が握りつぶされて気付けませんでした。シンボリックリン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2024%2F09%2F18%2F204702&quot; title=&quot;C#&amp;amp;Windows ディレクトリの循環シンボリックリンクによるIOException - potisanのプログラミングメモ&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>2024-09-18 20:47:02</published>
  <title>C#&amp;Windows ディレクトリの循環シンボリックリンクによるIOException</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2024/09/18/204702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
