MCPcopy
hub / github.com/dreammis/social-auto-upload / get_absolute_path

Function get_absolute_path

utils/files_times.py:9–12  ·  view source on GitHub ↗
(relative_path: str, base_dir: str = None)

Source from the content-addressed store, hash-verified

7
8
9def get_absolute_path(relative_path: str, base_dir: str = None) -> str:
10 # Convert the relative path to an absolute path
11 absolute_path = Path(BASE_DIR) / base_dir / relative_path
12 return str(absolute_path)
13
14
15def get_title_and_hashtags(filename):

Callers 2

tiktok_setupFunction · 0.90
weixin_setupFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected