weldx.WeldxFile.copy#
- WeldxFile.copy(filename_or_file_like=None, overwrite=False)#
Take a copy of this file.
Depending on the underlying file type this does several different things.
- Parameters:
filename_or_file_like (
Union
[str
,Path
,IOBase
,SupportsFileReadOnly
,SupportsFileReadWrite
,None
]) – The desired output file. If no file is given, an in-memory file will be created.overwrite (
bool
) – Iffilename_or_file_like
points to a path or filename which already exists, this flag determines if it would be overwritten or not.
- Returns:
The new instance with the copied content.
- Return type: