( path_manipulation )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| 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() | - | - | - | - |