{"version":"1.0","published":"2008-08-27 01:00:20","author_name":"t2y-1979","height":"190","title":"\u30c7\u30a3\u30b9\u30af\u30b9\u30da\u30fc\u30b9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u53d6\u5f97\u3059\u308b ","blog_url":"https://t2y.hatenablog.jp/","categories":["python"],"provider_url":"https://hatena.blog","url":"https://t2y.hatenablog.jp/entry/20080827/1219766420","author_url":"https://blog.hatena.ne.jp/t2y-1979/","description":"\u547c\u79f0: \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30c7\u30a3\u30b9\u30af\u30b5\u30a4\u30ba\u53d6\u5f97 \u76ee\u7684: df \u30b3\u30de\u30f3\u30c9\u306e\u7279\u5b9a\u306e\u51fa\u529b\u3092\u53d6\u5f97\u3057\u305f\u3044 \u7279\u5fb4: df \u30b3\u30de\u30f3\u30c9\u3078\u30d1\u30b9\u3092\u6e21\u3059\u3053\u3068\u3067\u3001\u305d\u306e\u30d1\u30b9\u3092\u542b\u3080\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u308b \u7528\u4f8b: \u5927\u5bb9\u91cf\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u30b3\u30d4\u30fc\u6642\u306e\u7a7a\u304d\u30b5\u30a4\u30ba\u30c1\u30a7\u30c3\u30af \u5099\u8003: Unix \u7cfb OS \u306e\u307f\u4f7f\u7528\u53ef #!/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 =\u2026","blog_title":"forest book","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20080827%2F1219766420\" title=\"\u30c7\u30a3\u30b9\u30af\u30b9\u30da\u30fc\u30b9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u53d6\u5f97\u3059\u308b  - forest book\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","type":"rich"}