aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-05-02 13:02:04 +0200
committerTibor Frank <tifrank@cisco.com>2018-05-02 11:04:00 +0000
commitc4cc7cf156494acbf29c90d4e375d764a3827812 (patch)
tree40b60f285afa83b5a092ff7589ec6d7e03eea70f
parent00e11c598cc74cad67aeb5534216b6382dd19668 (diff)
Report: Replace copy with move while archiving input files
Change-Id: Iea741cf3346574cc5def8c13e2660e2760157487 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 2093328406eb64ae825a06967632e901ae0ba6db) (cherry picked from commit ee9041274618cf3103477681603b9185dcd9904c)
-rw-r--r--resources/tools/presentation/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/tools/presentation/utils.py b/resources/tools/presentation/utils.py
index df543c17ea..95faffdd66 100644
--- a/resources/tools/presentation/utils.py
+++ b/resources/tools/presentation/utils.py
@@ -21,7 +21,7 @@ import logging
from os import walk, makedirs, environ
from os.path import join, isdir
-from shutil import copy, Error
+from shutil import move, Error
from math import sqrt
from errors import PresentationError
@@ -264,8 +264,8 @@ def archive_input_data(spec):
makedirs(dst)
for data_file in data_files:
- logging.info(" Copying the file: {0} ...".format(data_file))
- copy(data_file, dst)
+ logging.info(" Moving the file: {0} ...".format(data_file))
+ move(data_file, dst)
except (Error, OSError) as err:
raise PresentationError("Not possible to archive the input data.",