ec_copy_file — Copy a file from one location to another
int **ec_copy_file** ( | srcpath, | |
| | destpath, | |
| | flags, | |
| | mode
); | |
Copy a file from one location to another.
The location of the source file.
The location of the destination file.
The file creation flags for the destination
open()call. For valid flags see
The mode for the destination file. For valid modes see
This is a convenience wrapper that opens both files and then copies data from the source to the destination.
This function returns
0 on success.
It is legal to call this function in any thread.