MCPcopy
hub / github.com/tschaub/gh-pages / getCacheDir

Function getCacheDir

lib/index.js:18–25  ·  view source on GitHub ↗

* Get the cache directory. * @param {string} [optPath] Optional path. * @return {string} The full path to the cache directory.

(optPath)

Source from the content-addressed store, hash-verified

16 * @return {string} The full path to the cache directory.
17 */
18function 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.

Callers 1

index.jsFile · 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…