(resource, statSync = fs.statSync)
| 33 | fs.symlinkSync('unoent-entry', lpath); |
| 34 | |
| 35 | function stat_resource(resource, statSync = fs.statSync) { |
| 36 | if (typeof resource === 'string') { |
| 37 | return statSync(resource); |
| 38 | } |
| 39 | const stats = fs.fstatSync(resource); |
| 40 | // Ensure mtime has been written to disk |
| 41 | // except for directories on AIX where it cannot be synced |
| 42 | if ((common.isAIX || common.isIBMi) && stats.isDirectory()) |
| 43 | return stats; |
| 44 | fs.fsyncSync(resource); |
| 45 | return fs.fstatSync(resource); |
| 46 | } |
| 47 | |
| 48 | function check_mtime(resource, mtime, statSync) { |
| 49 | mtime = fs._toUnixTimestamp(mtime); |
no test coverage detected