MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _clone_repository_silent

Function _clone_repository_silent

Scripts/Settings.py:887–900  ·  view source on GitHub ↗
(repo_url, destination_path)

Source from the content-addressed store, hash-verified

885
886def 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
891def 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
897def 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

Callers 1

Calls 2

_remove_path_if_existsFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected