Dir returns the URI for the directory containing the receiver.
()
| 98 | |
| 99 | // Dir returns the URI for the directory containing the receiver. |
| 100 | func (uri DocumentURI) Dir() DocumentURI { |
| 101 | // This function could be more efficiently implemented by avoiding any call |
| 102 | // to Path(), but at least consolidates URI manipulation. |
| 103 | return URIFromPath(uri.DirPath()) |
| 104 | } |
| 105 | |
| 106 | // DirPath returns the file path to the directory containing this URI, which |
| 107 | // must be a file URI. |