MCPcopy
hub / github.com/ray-project/ray / _walk_thirdparty_dir

Function _walk_thirdparty_dir

python/setup.py:692–702  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

690
691
692def _walk_thirdparty_dir(directory):
693 file_list = []
694 for root, dirs, filenames in os.walk(directory):
695 # Exclude generated bytecode cache directories and tests directories
696 # from vendored packages.
697 for exclude_dir in ["__pycache__", "tests"]:
698 if exclude_dir in dirs:
699 dirs.remove(exclude_dir)
700 for name in filenames:
701 file_list.append(os.path.join(root, name))
702 return file_list
703
704
705def copy_file(target_dir, filename, rootdir):

Callers 1

pip_runFunction · 0.85

Calls 4

removeMethod · 0.65
walkMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…