File Uri Scheme and Relative Files

前端 未结 6 1655
借酒劲吻你
借酒劲吻你 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:46

    In a unix shell script I managed to go with this:

    file://`pwd`/relative-path
    

    In your particular case:

    file://`pwd`/.bashrc
    

提交回复
热议问题