(repo_url, destination_path)
| 885 | |
| 886 | def format_display_name(filename, full_path): |
| 887 | """Formats the display name with icons - only at the start.""" |
| 888 | icon = get_file_icon(filename, full_path) |
| 889 | return f"{icon} {filename}" |
| 890 | |
| 891 | def get_sponsor_tier_config(tier_key): |
| 892 | """Returns the sponsor tier configuration for 3 or 9.""" |
| 893 | tier_key = str(tier_key or "").replace("$", "").strip() |
| 894 | return SPONSORS_TIERS.get(tier_key) |
| 895 | |
| 896 | |
| 897 | def get_sponsors_tier_root_path(tier_key): |
| 898 | """Returns the Termux home folder path for a sponsor tier.""" |
| 899 | config = get_sponsor_tier_config(tier_key) |
| 900 | if not config: |
| 901 | return None |
| 902 | return os.path.join(HOME_DIR, config["root_name"]) |
| 903 |
no test coverage detected