Does the opposite of expand_user, with its outputs.
(path:str, tilde_expand:bool, tilde_val:str)
| 282 | |
| 283 | |
| 284 | def compress_user(path:str, tilde_expand:bool, tilde_val:str) -> str: |
| 285 | """Does the opposite of expand_user, with its outputs. |
| 286 | """ |
| 287 | if tilde_expand: |
| 288 | return path.replace(tilde_val, '~') |
| 289 | else: |
| 290 | return path |
| 291 | |
| 292 | |
| 293 | def completions_sorting_key(word): |
no outgoing calls
no test coverage detected