<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oshothebig</author_name>
  <author_url>https://blog.hatena.ne.jp/oshothebig/</author_url>
  <blog_title>日々雑感</blog_title>
  <blog_url>https://oshothebig.hatenadiary.org/</blog_url>
  <categories>
    <anon>コンピュータ</anon>
    <anon>Python</anon>
  </categories>
  <description>再帰的にディレクトリのサイズを計算するスクリプトを作ろうとしているのだが，うまく動かない． 日本語ファイル名のところで失敗している模様．どうしたらいいのだろうか？ import sys import os def getsize(path): fullpath = os.path.abspath(path) size = 0 if os.path.isdir(fullpath): for file in os.listdir(fullpath) size += getsize(os.path.join(fullpath, file)) return size else: return os.p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foshothebig.hatenadiary.org%2Fentry%2F20060803%2F1154610653&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-08-03 22:10:53</published>
  <title>日本語ファイル名の扱い</title>
  <type>rich</type>
  <url>https://oshothebig.hatenadiary.org/entry/20060803/1154610653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
