'Copies a file in the filesystem to the path
of the template files.
:param self: A PhishingTemplate object
:type self: PhishingTemplate
:param path: path of the file that is to be copied
:type self: str
:return: the path of the file under the template files
:rtype: str'

def use_file(self, path):

    if ((path is not None) and os.path.isfile(path)):
        filename = os.path.basename(path)
        copyfile(path, (self.get_path_static() + filename))
        self._extra_files.append((self.get_path_static() + filename))
        return filename
