move results directory subcontents explicitly

pull/310/head
Frostebite 2022-01-24 20:11:30 +00:00
parent 08b90ff4fc
commit a07f8d4e6c
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -603,7 +603,7 @@ class Caching {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path_1.default.basename(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 "${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

@ -77,7 +77,7 @@ export class Caching {
await CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path.basename(resultsDirectory)}`);
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
assert(`${fs.existsSync(fullDestination)}`);
await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);
await CloudRunnerSystem.Run(`mv "${fullDestination}/{,.[^.]}*" "${destinationFolder}"`);
fs.rmdirSync(fullDestination);
} else {
RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);