move results directory then rename fix
							parent
							
								
									c2b658a8d3
								
							
						
					
					
						commit
						080a4631a4
					
				|  | @ -604,7 +604,9 @@ 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)}`); | ||||||
|                     yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}/.."`); |                     yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}/.."`); | ||||||
|                     fs_1.default.rmdirSync(destinationFolder); |                     if (fs_1.default.existsSync(destinationFolder)) { | ||||||
|  |                         fs_1.default.rmdirSync(destinationFolder); | ||||||
|  |                     } | ||||||
|                     fs_1.default.renameSync(`${destinationFolder}/../${resultsDirectory}`, destinationFolder); |                     fs_1.default.renameSync(`${destinationFolder}/../${resultsDirectory}`, destinationFolder); | ||||||
|                 } |                 } | ||||||
|                 else { |                 else { | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -78,7 +78,9 @@ 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)}`); | ||||||
|         await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}/.."`); |         await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}/.."`); | ||||||
|         fs.rmdirSync(destinationFolder); |         if (fs.existsSync(destinationFolder)) { | ||||||
|  |           fs.rmdirSync(destinationFolder); | ||||||
|  |         } | ||||||
|         fs.renameSync(`${destinationFolder}/../${resultsDirectory}`, destinationFolder); |         fs.renameSync(`${destinationFolder}/../${resultsDirectory}`, destinationFolder); | ||||||
|       } else { |       } else { | ||||||
|         RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`); |         RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue