X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Futils.py;fp=resources%2Ftools%2Fpresentation%2Futils.py;h=95faffdd665ecc6483c1e0b8c4aabeb4df8bab1e;hp=df543c17ea3c437146a82334a2a68f4e253a553c;hb=2093328406eb64ae825a06967632e901ae0ba6db;hpb=120cc891f690dab55377f972c2c989cd6e621e95 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.",