# LibTmux::PaneSnapshot#current_path

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.1/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

| Language | Equivalent |
| --- | --- |
| 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) |
| TypeScript | no equivalent on `Pane` |
| 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.currentPath`](/en/java/latest/reference/io-github-libtmux-pane-pane-currentpath/) (method) |
| C# | no equivalent on `Pane` |
| C++ | no equivalent on `Pane` |
| Swift | [`Pane.currentPath`](/en/swift/latest/reference/pane-currentpath/) (property) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
