Does the opposite of expand_user, with its outputs.
(path:str, tilde_expand:bool, tilde_val:str)
| 409 | |
| 410 | |
| 411 | def compress_user(path:str, tilde_expand:bool, tilde_val:str) -> str: |
| 412 | """Does the opposite of expand_user, with its outputs. |
| 413 | """ |
| 414 | if tilde_expand: |
| 415 | return path.replace(tilde_val, '~') |
| 416 | else: |
| 417 | return path |
| 418 | |
| 419 | |
| 420 | def completions_sorting_key(word): |
no test coverage detected
searching dependent graphs…