<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>misos</author_name>
  <author_url>https://blog.hatena.ne.jp/misos/</author_url>
  <blog_title>めも</blog_title>
  <blog_url>https://paper.hatenadiary.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>やりたいこと コード ランダムな文字列を名前にしてディレクトリを作成 UUID4を生成 やりたいこと ランダムにダミーの名前でディレクトリを作成したい. また, 名前を指定してディレクトリを作成したい, 既に存在する場合はエラーを出さない. コード ランダムな文字列を名前にしてディレクトリを作成 os.makedirs(dirname, exist_ok=True) にて exist_ok=Trueのオプションを指定して既に存在する場合もエラーを出さなくする. &quot;&quot;.join([random.choice(string.ascii_letters) for i in range(20)])で英…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpaper.hatenadiary.jp%2Fentry%2F2019%2F12%2F11%2F152709&quot; title=&quot;ランダムな文字列でディレクトリを作成 (Python3) - めも&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>2019-12-11 15:27:09</published>
  <title>ランダムな文字列でディレクトリを作成 (Python3)</title>
  <type>rich</type>
  <url>https://paper.hatenadiary.jp/entry/2019/12/11/152709</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
