( path_manipulation )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( build_path ) | os.path.join(a, b) | - | - | - | - |
| ( normalize_path ) | os.path.normpath() | - | - | - | - |
| ( get_basename ) | os.path.basename() | - | - | - | basename |
| ( get_dirname ) | os.path.dirname() | - | - | - | dirname |
| ( relative_path_to_absolute_path ) | os.path.abspath() | - | - | - | realpath (GNU) |
| ( get_stem ) | os.path.splitext(path)[0] | - | - | - | ${fname%%.*} |
| ( get_extension ) | os.path.splitext(path)[1] | - | - | - | - |
| ( resolve_symbolic_link ) | os.path.realpath() | - | - | - | - |