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