File Uri Scheme and Relative Files

前端 未结 6 1659
借酒劲吻你
借酒劲吻你 2020-12-01 00:59

Assume that the scheme for a uri is \"file\". Also assume that the path starts with \'.\'

An example path is \'./.bashrc\'. How would the fulluri look? \'file://./.

6条回答
  •  情话喂你
    2020-12-01 01:36

    You should not put double slash after file:. Correct form is

    'file:.bashrc'
    

    See RFC 3986, path-rootless definition

提交回复
热议问题