Undo: move zipped folder from nested layer during cache pull
parent
b688bb100a
commit
4341bf76c0
|
|
@ -607,7 +607,7 @@ class Caching {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||||
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
|
||||||
const destinationParentFolder = path_1.default.resolve(destinationFolder, '..');
|
const destinationParentFolder = path_1.default.resolve(destinationFolder, '..');
|
||||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${path_1.default.join(fullDestination, path_1.default.basename(destinationFolder))}" "${destinationParentFolder}"`);
|
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationParentFolder}"`);
|
||||||
if (fs_1.default.existsSync(destinationFolder)) {
|
if (fs_1.default.existsSync(destinationFolder)) {
|
||||||
fs_1.default.rmSync(destinationFolder, { recursive: true, force: true });
|
fs_1.default.rmSync(destinationFolder, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -82,9 +82,7 @@ export class Caching {
|
||||||
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
|
||||||
assert(`${fs.existsSync(fullDestination)}`);
|
assert(`${fs.existsSync(fullDestination)}`);
|
||||||
const destinationParentFolder = path.resolve(destinationFolder, '..');
|
const destinationParentFolder = path.resolve(destinationFolder, '..');
|
||||||
await CloudRunnerSystem.Run(
|
await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationParentFolder}"`);
|
||||||
`mv "${path.join(fullDestination, path.basename(destinationFolder))}" "${destinationParentFolder}"`,
|
|
||||||
);
|
|
||||||
if (fs.existsSync(destinationFolder)) {
|
if (fs.existsSync(destinationFolder)) {
|
||||||
fs.rmSync(destinationFolder, { recursive: true, force: true });
|
fs.rmSync(destinationFolder, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue