MCPcopy Index your code
hub / github.com/actions/setup-python / isCacheDirectoryExists

Function isCacheDirectoryExists

src/cache-save.ts:83–89  ·  view source on GitHub ↗
(cacheDirectory: string[])

Source from the content-addressed store, hash-verified

81}
82
83function isCacheDirectoryExists(cacheDirectory: string[]) {
84 const result = cacheDirectory.reduce((previousValue, currentValue) => {
85 return previousValue || fs.existsSync(currentValue);
86 }, false);
87
88 return result;
89}
90
91run(true);

Callers 1

saveCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected