MCPcopy Index your code
hub / github.com/react/react / doesFilePathExist

Function doesFilePathExist

packages/react-devtools-core/src/editor.js:136–141  ·  view source on GitHub ↗
(
  maybeRelativePath: string,
  absoluteProjectRoots: Array<string>,
)

Source from the content-addressed store, hash-verified

134}
135
136export function doesFilePathExist(
137 maybeRelativePath: string,
138 absoluteProjectRoots: Array<string>,
139): boolean {
140 return getValidFilePath(maybeRelativePath, absoluteProjectRoots) !== null;
141}
142
143export function launchEditor(
144 maybeRelativePath: string,

Callers 1

Calls 1

getValidFilePathFunction · 0.85

Tested by

no test coverage detected