<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonにてファイルを更新時刻でソート・リネームするスクリプトを自分用にメモしておきます． # python3.3 import os,os.path files = os.listdir(&quot;.&quot;) files.sort(key=os.path.getmtime, reverse=False) for i,name in enumerate(files): if name.endswith(&quot;pdf&quot;): os.rename(name,str(i)+name) pdfのファイル名の先頭に，更新時刻の順番を追加します．カスタマイズすれば便利になると思います．</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2013%2F12%2F03%2F193721&quot; title=&quot;Pythonでファイルを更新時刻でソート・リネーム - みーのぺーじ&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>2013-12-03 19:37:21</published>
  <title>Pythonでファイルを更新時刻でソート・リネーム</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2013/12/03/193721</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
