(stats, fileType)
| 224 | } |
| 225 | |
| 226 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…