<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>概要 よく使ってる処理だけど、よく忘れるのでメモメモ。 たまに read-only なファイルが混ざっているようなディレクトリの中を 問答無用で読取り専用外したいときがあります。エクスプローラーですればいいじゃんって なるのですが、たまに読取り専用外れていないときがあるんですよねぇ私の場合(´；ω；｀) マウス操作するよりも、ipython上でササって書いた方が速いし。 使うのは、osモジュールとstatモジュールで事足ります。こういうときpythonは楽ですね。 サンプル PYTHON 指定したディレクトリ以下の全ファイルの読取り専用を外す (Windows) 参考情報 stackoverf…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2017%2F11%2F16%2F194941&quot; title=&quot;Pythonメモ-34 (ファイルの読取り専用を外す) (os.access, os.W_OK, os.chmod, stat.S_IWRITE)  - いろいろ備忘録日記&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>2017-11-16 19:49:41</published>
  <title>Pythonメモ-34 (ファイルの読取り専用を外す) (os.access, os.W_OK, os.chmod, stat.S_IWRITE) </title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2017/11/16/194941</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
