MCPcopy Index your code
hub / github.com/nodejs/node / FilesAreEqual

Function FilesAreEqual

tools/inspector_protocol/roll.py:65–68  ·  view source on GitHub ↗
(path1, path2)

Source from the content-addressed store, hash-verified

63
64
65def FilesAreEqual(path1, path2):
66 # We check for permissions (useful for executable scripts) and contents.
67 return (os.stat(path1).st_mode == os.stat(path2).st_mode and
68 open(path1).read() == open(path2).read())
69
70
71def ReadV8IPRevision(node_src_path):

Callers 1

mainFunction · 0.70

Calls 3

openFunction · 0.50
statMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…