copyfiles
- func uint copyfiles( str src, str dir, uint flag, uint mode, uint process )
- func uint defcopyproc( uint code, uint left, uint right )
Copying files and directories by mask.
func uint copyfiles (
str src,
str dir,
uint flag,
uint mode,
uint process
)
str src,
str dir,
uint flag,
uint mode,
uint process
)
Parameters
src | The names of mask of the files or directories being copied. | ||||||||||||
dir | The directory where files will be copied. | ||||||||||||
flag | The combination of search and copy flags.
| ||||||||||||
mode | What to do if the file being copied already exists.
| ||||||||||||
proccess | The identifier of the function handling messages. You can use &defcopyproc as a default process function. |
Return value
The function returns 1 if the copy operation is successful, otherwise it returns 0.
defcopyproc
This is a default process function for copyfiles. You can develop and use your own process function like it.
func uint defcopyproc (
uint code,
uint left,
uint right
)
uint code,
uint left,
uint right
)
Parameters
code | The message code.
| ||||||||||||||||||||
left | Additional parameter. | ||||||||||||||||||||
right | Additional parameter. |
Return value
You should return one of the following values:
$COPYR_NOTHING | Do nothing. |
$COPYR_BREAK | Break copying. |
$COPYR_RETRY | Retry. |
$COPYR_SKIP | Skip. |
$COPYR_OVER | Write over. |
$COPYR_OVERALL | Write over all files. |
$COPYR_SKIPALL | Skip all files. |
Related links | Source |