<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nullpobug</author_name>
  <author_url>https://blog.hatena.ne.jp/nullpobug/</author_url>
  <blog_title>偏った言語信者の垂れ流し</blog_title>
  <blog_url>https://tokibito.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Linux</anon>
  </categories>
  <description>PythonでLinux上にハードリンクとシンボリックリンクを作成する。 試したのはUbuntu12.04, Python2.7.3。 どちらもosモジュールの関数を使う。 ハードリンクの作成 ハードリンクはos.link関数で作成できる。 &gt;&gt;&gt; import os &gt;&gt;&gt; os.link('test.txt', 'foo') シンボリックリンクの作成 シンボリックリンクはos.symlink関数で作成できる。 &gt;&gt;&gt; import os &gt;&gt;&gt; os.symlink('test.txt', 'bar') 結果 $ ls -l total 8 lrwxrwxrwx 1 tokibito to…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokibito.hatenablog.com%2Fentry%2F20130112%2F1357929961&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-01-12 03:46:01</published>
  <title>Pythonでシンボリックリンクとハードリンクを作成する</title>
  <type>rich</type>
  <url>https://tokibito.hatenablog.com/entry/20130112/1357929961</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
