asciicons
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AsciiIcon pycons.asciicons ASCII icons for different file types. |
๐ DocStrings¶
Ascii icons for different file types.
AsciiIcon
¶
Bases: StrEnum
ASCII icons for different file types.
Source code in src/pycons/asciicons.py
get_path_ascii_icon
¶
Get an ASCII icon for a given file path based on its type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | PathLike[str]
|
File path as string or Path object |
required |
Returns:
| Type | Description |
|---|---|
str
|
ASCII icon representing the file type |