move caching folder fix

pull/310/head
Frostebite 2022-01-23 19:42:42 +00:00
parent f4eccf6a32
commit d57bb5f562
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -635,7 +635,7 @@ class Caching {
fs_1.default.createReadStream(`${cacheSelection}.zip`).pipe(unzipper_1.default.Extract({ path: resultsDirectory }));
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv -v "${fullDestination}/" "${destinationFolder}"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}/*" "${destinationFolder}"`);
fs_1.default.rmdirSync(fullDestination);
}
else {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -108,7 +108,7 @@ export class Caching {
fs.createReadStream(`${cacheSelection}.zip`).pipe(unzipper.Extract({ path: resultsDirectory }));
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
assert(`${fs.existsSync(fullDestination)}`);
await CloudRunnerSystem.Run(`mv -v "${fullDestination}/" "${destinationFolder}"`);
await CloudRunnerSystem.Run(`mv "${fullDestination}/*" "${destinationFolder}"`);
fs.rmdirSync(fullDestination);
} else {
RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);