# LibTmux::PaneSnapshot#current_path

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-panesnapshot-current_path/

```
def current_path: () -> ::String?
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### A pane process's working directory

- Python: [`libtmux.Pane.pane_current_path`](/en/py/latest/reference/libtmux-pane-pane_current_path/) (attribute)
- Lua: [`libtmux.SnapshotPane.current_path`](/en/lua/latest/reference/libtmux-snapshotpane-current_path/) (attribute)
- Rust: [`pane.Pane.current_path`](/en/rs/latest/reference/pane-pane-current_path/) (method)
- Go: [`tmux.Pane.CurrentPath`](/en/go/latest/reference/tmux-pane-currentpath/) (method)
- Java: [`io.github.libtmux.Pane.Pane.currentPath`](/en/java/latest/reference/io-github-libtmux-pane-pane-currentpath/) (method)
- Swift: [`Pane.currentPath`](/en/swift/latest/reference/pane-currentpath/) (property)
