* Get the cache directory. * @param {string} [optPath] Optional path. * @return {string} The full path to the cache directory.
(optPath)
| 16 | * @return {string} The full path to the cache directory. |
| 17 | */ |
| 18 | function getCacheDir(optPath) { |
| 19 | const dir = findCacheDir({name: 'gh-pages'}); |
| 20 | if (!optPath) { |
| 21 | return dir; |
| 22 | } |
| 23 | |
| 24 | return path.join(dir, filenamify(optPath)); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Clean the cache directory. |
no outgoing calls
no test coverage detected
searching dependent graphs…