ytilities.paths
Copyright (c) 2023 Anthony Mugendi
This software is released under the MIT License. https://opensource.org/licenses/MIT
Module Contents
Functions
|
Truncate a path to a given length . |
- ytilities.paths.path_truncate(path_str: str, max_len: int = 50) str
Truncate a path to a given length .
- Parameters:
path_str (str) – Path to truncate
max_len (int, optional) – Maximum length (chars) to truncate to. Defaults to 50.
- Returns:
Truncated path
- Return type:
str