<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t2y-1979</author_name>
  <author_url>https://blog.hatena.ne.jp/t2y-1979/</author_url>
  <blog_title>forest book</blog_title>
  <blog_url>https://t2y.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>呼称: ファイルシステムのディスクサイズ取得 目的: df コマンドの特定の出力を取得したい 特徴: df コマンドへパスを渡すことで、そのパスを含むパーティションの情報が取得できる 用例: 大容量ファイルのインストールやコピー時の空きサイズチェック 備考: Unix 系 OS のみ使用可 #!/bin/env python import os def get_diskspace(dstpath, sizeopt='k'): if sizeopt != 'k' and sizeopt != 'm': sizeopt = 'k' if os.path.isdir(dstpath): pipe =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20080827%2F1219766420&quot; title=&quot;ディスクスペースの使用状況を取得する  - forest book&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>2008-08-27 01:00:20</published>
  <title>ディスクスペースの使用状況を取得する </title>
  <type>rich</type>
  <url>https://t2y.hatenablog.jp/entry/20080827/1219766420</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
