# get_path

Clone a repository and return its path. Supports extended URL with branch/subpath.

```rhai
tree.get_path(url: &str) -> String
```

## Examples

```rhai
let tree = git_tree_new("/tmp/repos");
let path = tree.get_path("https://github.com/user/project.git");
print(`Repo at: ${path}`);
```

```rhai
let tree = git_tree_new("/tmp/repos");
let docs = tree.get_path("https://github.com/org/repo/src/branch/main/docs");
let readme = file_read(`${docs}/README.md`);
```
