copy_filecopy_fileCopyFileCopyFilecopy_file (Operator)
名称
copy_filecopy_fileCopyFileCopyFilecopy_file — 将文件复制到新位置。
签名
描述
copy_filecopy_fileCopyFileCopyFileCopyFilecopy_file copies SourceFileSourceFileSourceFileSourceFilesourceFilesource_file to DestinationFileDestinationFileDestinationFileDestinationFiledestinationFiledestination_file.
Existing files are silently overwritten. The file attributes of
SourceFileSourceFileSourceFileSourceFilesourceFilesource_file are kept.
执行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
参数
SourceFileSourceFileSourceFileSourceFilesourceFilesource_file (input_control) filename.read → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
File to be copied.
DestinationFileDestinationFileDestinationFileDestinationFiledestinationFiledestination_file (input_control) filename.write → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Target location.
结果
copy_filecopy_fileCopyFileCopyFileCopyFilecopy_file returns the value 2 (
H_MSG_TRUE)
if the file could be copied.
Otherwise, an exception is raised.
模块
Foundation