パスワードを忘れた? アカウント作成
171527 journal

Livingdeadの日記: file: スキームの URI って標準化されていたっけ? 1

日記 by Livingdead

Windowsのファイルシステム上のパスを表すURIにおいて、ドライブレターをどう記述するか。結局のところ標準はないらしい。Python の urllib.pathname2url では | (縦棒、縦線)を使うURLに変換されるようだ。

Drive letters are mapped into the top of a file URI in various ways, depending on the implementation; some applications substitute vertical bar ("|") for the colon after the drive letter, yielding "file:///c|/tmp/test.txt". In some cases, the colon is left unchanged, as in "file:///c:/tmp/test.txt". In other cases, the colon is simply omitted, as in "file:///c/tmp/test.txt".
draft-hoffman-file-uri-03 - The file URI Scheme

この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。
typodupeerror

人生の大半の問題はスルー力で解決する -- スルー力研究専門家

読み込み中...