xcp_d.utils.filemanip.copyfiles

xcp_d.utils.filemanip.copyfiles(filelist, dest, copy=False, create_new=False)[source]

Copy or symlink files in filelist to dest directory.

Parameters:
  • filelist (list of str) – List of files to copy.

  • dest (str or list of str) – full path to destination. If it is a list of length greater than 1, then it assumes that these are the names of the new files.

  • copy (str) – specifies whether to copy or symlink files (default=False) but only for posix systems

Returns:

newfiles – List of new copied files.

Return type:

list of str