MCPcopy Create free account
hub / github.com/alibaba/GraphScope / read_folder_files_content

Function read_folder_files_content

python/graphscope/learning/utils.py:24–32  ·  view source on GitHub ↗
(folder_path)

Source from the content-addressed store, hash-verified

22
23
24def read_folder_files_content(folder_path):
25 files_content = {}
26 for filename in os.listdir(folder_path):
27 file_path = os.path.join(folder_path, filename)
28 # make sure it's a file not a directory
29 if os.path.isfile(file_path):
30 with open(file_path, "r") as file:
31 files_content[filename] = file.read()
32 return files_content
33
34
35def fill_params_in_yaml(file_path, params):

Callers 1

graphlearn_torchMethod · 0.90

Calls 3

openFunction · 0.85
readMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected