Split node path returning the base path and node name. For example: '/path/to/node' will return '/path/to' and 'node' Parameters ---------- node_path : str PyTable node path; e.g. '/path/to/node'.
(cls, node_path)
| 326 | |
| 327 | @classmethod |
| 328 | def split_path(cls, node_path): |
| 329 | """Split node path returning the base path and node name. |
| 330 | |
| 331 | For example: '/path/to/node' will return '/path/to' and 'node' |
| 332 | |
| 333 | Parameters |
| 334 | ---------- |
| 335 | node_path : str |
| 336 | PyTable node path; e.g. '/path/to/node'. |
| 337 | """ |
| 338 | i = node_path.rfind("/") |
| 339 | if i == 0: |
| 340 | return "/", node_path[1:] |
| 341 | else: |
| 342 | return node_path[:i], node_path[i + 1:] |
| 343 | |
| 344 | @classmethod |
| 345 | def join_path(cls, *args): |
no outgoing calls