# io.github.libtmux.snapshot.PaneState.currentPath

- **Module:** io.github.libtmux.snapshot
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-snapshot-panestate-panestate-currentpath/

```
io.github.libtmux.snapshot.PaneState.currentPath() -> String
```

the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead
