Return the string representation of a virtual path object.
(obj)
| 248 | |
| 249 | |
| 250 | def vfspath(obj): |
| 251 | """ |
| 252 | Return the string representation of a virtual path object. |
| 253 | """ |
| 254 | cls = type(obj) |
| 255 | try: |
| 256 | vfspath_method = cls.__vfspath__ |
| 257 | except AttributeError: |
| 258 | cls_name = cls.__name__ |
| 259 | raise TypeError(f"expected JoinablePath object, not {cls_name}") from None |
| 260 | else: |
| 261 | return vfspath_method(obj) |
| 262 | |
| 263 | |
| 264 | def ensure_distinct_paths(source, target): |
no outgoing calls
searching dependent graphs…