Home / Function/ doesFilePathExist() — react Function Reference

doesFilePathExist() — react Function Reference

Architecture documentation for the doesFilePathExist() function in editor.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d352faa0_4c41_77cb_45d0_6c9536117f37["doesFilePathExist()"]
  39f6c195_7b6b_6f87_7437_5d782daf3565["editor.js"]
  d352faa0_4c41_77cb_45d0_6c9536117f37 -->|defined in| 39f6c195_7b6b_6f87_7437_5d782daf3565
  8f292aac_c808_e1ff_4d0a_3a933ef58bee["getValidFilePath()"]
  d352faa0_4c41_77cb_45d0_6c9536117f37 -->|calls| 8f292aac_c808_e1ff_4d0a_3a933ef58bee
  style d352faa0_4c41_77cb_45d0_6c9536117f37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-core/src/editor.js lines 136–141

export function doesFilePathExist(
  maybeRelativePath: string,
  absoluteProjectRoots: Array<string>,
): boolean {
  return getValidFilePath(maybeRelativePath, absoluteProjectRoots) !== null;
}

Domain

Subdomains

Frequently Asked Questions

What does doesFilePathExist() do?
doesFilePathExist() is a function in the react codebase, defined in packages/react-devtools-core/src/editor.js.
Where is doesFilePathExist() defined?
doesFilePathExist() is defined in packages/react-devtools-core/src/editor.js at line 136.
What does doesFilePathExist() call?
doesFilePathExist() calls 1 function(s): getValidFilePath.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free