# libtmux::path_component

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/target.hpp#L51
- **Page:** https://libtmux.org/reference/cxx/libtmux-path_component/

```
libtmux::path_component(name: std::string_view) -> expected< std::string, TargetError >
```

Validate one path component.

Ids skip validation because they contain no separator by construction.
