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

Function format_duration

Scripts/Settings.py:1719–1736  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

1717 try:
1718 entries = sorted(os.listdir(PROJECT_SAVE_SHARED_STORAGE_PATH), key=str.lower)
1719 except Exception:
1720 return extra_directories
1721
1722 for entry in entries:
1723 if entry.startswith('.') or entry in PROJECT_SAVE_EXCLUDED_TOP_LEVEL_DIRS:
1724 continue
1725
1726 full_path = os.path.join(PROJECT_SAVE_SHARED_STORAGE_PATH, entry)
1727 if not os.path.isdir(full_path):
1728 continue
1729
1730 extra_directories.append(full_path)
1731 if len(extra_directories) >= max_count:
1732 break
1733
1734 return extra_directories
1735
1736
1737
1738def _copy_project_archive_to_selected_folders(archive_path):
1739 for target_directory in _get_project_save_extra_copy_directories():

Callers 1

show_termux_usage_statsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected