prg_file_dir_copy()
摘要
复制一个目录。
语法
prg_file_dir_copy (source_dir, dest_dir, options)
| 参数 | 类型 | 说明 |
|---|---|---|
source_dir |
const char * |
源目录的路径名。 |
dest_dir |
const char * |
目标目录的路径名。 |
options |
int |
0(未使用) |
返回类型
PrgT_Compcode
若源目录路径无效或目录无法复制,返回 PrgC_Compcode_Failure;否则返回 PrgC_Compcode_Success。
头文件
prg_file_funcs.h
详情
该函数会在必要时创建目标目录,然后将源目录的内容(包括所有子目录)复制到其中。