# io.github.libtmux.Pane.Pane.currentPath

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Pane.java#L136
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane-currentpath/

```
io.github.libtmux.Pane.Pane.currentPath() -> Path
```

The working directory tmux reported for the pane.

Converted on request rather than when the pane was captured, because a directory name is
bytes to tmux and this JVM cannot always represent one: converting at capture time would lose
every pane on the server over a single pane's directory. {@link #currentPathText()} is the
value tmux actually reported, and never throws.

## Raises

- `LibTmuxException`: if this JVM's encoding cannot represent the name, which a UTF-8 locale fixes
