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

Function isFileType

lib/fs.js:226–233  ·  view source on GitHub ↗
(stats, fileType)

Source from the content-addressed store, hash-verified

224}
225
226function isFileType(stats, fileType) {
227 // Use stats array directly to avoid creating an fs.Stats instance just for
228 // our internal use.
229 let mode = stats[1];
230 if (typeof mode === 'bigint')
231 mode = Number(mode);
232 return (mode & S_IFMT) === fileType;
233}
234
235/**
236 * Tests a user's permissions for the file or directory

Callers 4

readFileAfterStatFunction · 0.85
readFileSyncFunction · 0.85
realpathSyncFunction · 0.85
LOOPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…