getDevRoot returns the dev root associated with the root. If the root is not a dev root, this defaults to "/".
()
| 74 | // getDevRoot returns the dev root associated with the root. |
| 75 | // If the root is not a dev root, this defaults to "/". |
| 76 | func (r root) getDevRoot() string { |
| 77 | if r.isDevRoot() { |
| 78 | return string(r) |
| 79 | } |
| 80 | return "/" |
| 81 | } |
| 82 | |
| 83 | // findFile searches the root for a specified file. |
| 84 | // A number of folders can be specified to search in addition to the root itself. |
no test coverage detected