@@ -610,7 +610,7 @@ def start_profile(
610610 cache_rsync = Rsync (self ._executor , data_dir = path .dirname (self ._report ))
611611 try :
612612 report = cache_rsync .pull_path (self ._report , self ._work_dir )
613- shutil .copy (report , report_path )
613+ shutil .move (report , report_path )
614614 self ._report_pull_failed = False
615615 except AssertionError :
616616 self ._report_path = report_path
@@ -653,10 +653,10 @@ def download_logs(self, directory: str) -> None:
653653 Path (directory ).mkdir (parents = True , exist_ok = True )
654654 for file in log_files :
655655 if Path (file ).exists ():
656- shutil .copy (file , directory )
656+ shutil .move (file , directory )
657657
658658 if self ._verbose :
659- shutil .copy (self ._config_file , directory )
659+ shutil .move (self ._config_file , directory )
660660
661661 def stats (self ) -> GeneratorStats :
662662 """Get stats of last generator run.
@@ -684,7 +684,7 @@ def stats(self) -> GeneratorStats:
684684 if self ._report_pull_failed :
685685 cache_rsync = Rsync (self ._executor , data_dir = path .dirname (self ._report ))
686686 report = cache_rsync .pull_path (self ._report , self ._work_dir )
687- shutil .copy (report , self ._report_path )
687+ shutil .move (report , self ._report_path )
688688
689689 return GeneratorStats (pkts , bts , start_time , end_time )
690690
0 commit comments