<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uc_ebuc</author_name>
  <author_url>https://blog.hatena.ne.jp/uc_ebuc/</author_url>
  <blog_title>雑多なブログ</blog_title>
  <blog_url>https://cufl.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>pythonでは、ファイル・ディレクトリの有無を調べる方法が複数提供されています。これにより、ファイル操作を行う際、ファイルやディレクトリの有無によって処理を分けることができます。 目次 os モジュールを使用する ファイル・ディレクトリの有無を調べる 対象パスがディレクトリかどうかを判別する 対象パスがファイルかどうか判別する pathlib モジュールを使用する ファイル・ディレクトリの有無を調べる 対象パスがディレクトリかどうか判別する 対象パスがファイルかどうか判別する 例外処理 os モジュールを使用する ファイル・ディレクトリの有無を調べる os.path.exists() はファ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2020%2F03%2F14%2F214020&quot; title=&quot;Pythonでファイル・ディレクトリの有無を調べる方法 - 雑多なブログ&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>2020-03-14 21:40:20</published>
  <title>Pythonでファイル・ディレクトリの有無を調べる方法</title>
  <type>rich</type>
  <url>https://cufl.hateblo.jp/entry/2020/03/14/214020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
