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

Function is_valid_file_path

python/graphscope/gsctl/utils.py:42–44  ·  view source on GitHub ↗

Check if the path exists and corresponds to a regular file.

(path)

Source from the content-addressed store, hash-verified

40
41
42def is_valid_file_path(path) -> bool:
43 """Check if the path exists and corresponds to a regular file."""
44 return os.path.exists(path) and os.path.isfile(path)
45
46
47def terminal_display(data):

Callers 9

schemaFunction · 0.90
vertex_typeFunction · 0.90
edge_typeFunction · 0.90
datasourceFunction · 0.90
loaderjobFunction · 0.90
storedprocFunction · 0.90
graphFunction · 0.90
datasourceFunction · 0.90
loaderjobFunction · 0.90

Calls 1

existsMethod · 0.65

Tested by

no test coverage detected