Gentee Programming Language > Documentation > Libraries Download documentation

copyfiles

Copying files and directories by mask.
 
uint copyfiles(
      str   src,
      str   destdir,
      uint   flag,
      uint   mode,
      uint   proccess
)

Parameters

srcThe names of mask of the files or directories being copied.
destdirThe directory where files will be copied.
flagThe combination of search flags $FIND and
$COPYF_ROOverwrite files with the attribute read-only.
$COPYF_SAVEPATHKeep relative paths while copying files from subdirectories
$COPYF_ASKPrompt before copying files already existing.
modeWhat to do if the file being copied already exists.
$COPY_OVEROverwrite
$COPY_SKIPSkip
$COPY_NEWEROverwrite if newer
$COPY_MODIFIEDOverwrite if modified
proccessThe identifier of the function handling messages.

Return value

The function returns 1 if the copy operation is successful, otherwise it returns 0.

See also

    Function working with files     The handler of copyfiles messages


 Copyright © 2004-2006 Gentee Inc. All rights reserved.