MCPcopy Create free account
hub / github.com/OpenDCAI/DataFlow-MM / _copy_examples

Function _copy_examples

dataflow/cli_funcs/cli_init.py:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 copy_files_recursively(DataFlowPath.get_dataflow_playground_dir(), target_dir)
28
29def _copy_examples():
30 target_dir = os.path.join(os.getcwd(), "example_data")
31 if not os.path.exists(target_dir):
32 os.makedirs(target_dir)
33 copy_files_recursively(DataFlowPath.get_dataflow_example_dir(), target_dir)
34
35def cli_init(subcommand):
36 print(f'{Fore.GREEN}Initializing in current working directory...{Style.RESET_ALL}')

Callers 1

cli_initFunction · 0.85

Calls 2

copy_files_recursivelyFunction · 0.85

Tested by

no test coverage detected