getAbsolutePath takes a repository-relative path and makes it absolute. For instance, given a repository in /usr/local/src/my-repo and a file called dir/foo/bar.txt, getAbsolutePath will return: /usr/local/src/my-repo/dir/foo/bar.txt
(p string)
| 144 | // |
| 145 | // /usr/local/src/my-repo/dir/foo/bar.txt |
| 146 | func (c *Client) getAbsolutePath(p string) (string, error) { |
| 147 | return filepath.Join(c.LocalWorkingDir, p), nil |
| 148 | } |
| 149 | |
| 150 | // UnlockFile attempts to unlock a file on the current remote |
| 151 | // path must be relative to the root of the repository |
no outgoing calls
no test coverage detected