MCPcopy Create free account
hub / github.com/angular/dev-infra / getFileStatus

Function getFileStatus

ng-dev/ts-circular-dependencies/file_system.ts:12–18  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

10
11/** Gets the status of the specified file. Returns null if the file does not exist. */
12export function getFileStatus(filePath: string): Stats | null {
13 try {
14 return statSync(filePath);
15 } catch {
16 return null;
17 }
18}
19
20/** Ensures that the specified path uses forward slashes as delimiter. */
21export function convertPathToForwardSlash(path: string) {

Callers 1

_resolveFileSpecifierMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected