MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / tryStatSync

Function tryStatSync

packages/vite/src/bridge/utils.ts:32–40  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

30 * @internal
31 */
32export function tryStatSync(file: string) {
33 try {
34 // The "throwIfNoEntry" is a performance optimization for cases where the file does not exist
35 return fs.statSync(file, { throwIfNoEntry: false });
36 } catch {
37 // Ignore errors
38 }
39 return;
40}
41
42// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/utils.ts#L1030
43/**

Callers 1

tryResolveRealFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected