(dirName)
| 49 | * @param {string} dirName |
| 50 | */ |
| 51 | export async function getStats(dirName) { |
| 52 | const dir = getStorage(dirName); |
| 53 | const path = join(dir, `key_value_stores/default/SDK_CRAWLER_STATISTICS_0.json`); |
| 54 | |
| 55 | if (!existsSync(path)) { |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | return fs.readJSON(path); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * @param {string | URL} url |
no test coverage detected
searching dependent graphs…