<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doroyamada</author_name>
  <author_url>https://blog.hatena.ne.jp/doroyamada/</author_url>
  <blog_title>パンクはいつも突然に</blog_title>
  <blog_url>https://doroyamada.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>phpでsyncthingサーバの新しいファイルをローカルにコピーするスクリプトを作っていたけど、一部のディレクトリでコピーできていない。ログを取るようにして原因発見。Androidのコラージュ作成ソフトが作成するファイルの名前にスペースが入っていたせいだった。 いったんは$filename=str_replace(' ','\\ ',$filename);したけど、ちょっと検索してescapeshellargという関数があるのを発見。こりゃ便利だ。 とはいえ、外部コマンドを呼び出すときはクォテーションで囲って、phpの関数に渡すときははずさないとうまくいかない。諸悪の根源はファイル名にスペー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoroyamada.hatenablog.jp%2Fentry%2F20180513%2F1526170833&quot; title=&quot;escapeshellarg - パンクはいつも突然に&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>2018-05-13 09:20:33</published>
  <title>escapeshellarg</title>
  <type>rich</type>
  <url>https://doroyamada.hatenablog.jp/entry/20180513/1526170833</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
