afc_fileops_set_tag

Name

afc_fileops_set_tag  -- Sets a tag

Synopsis

int afc_fileops_set_tag ( FileOperations * fo, int tag, void * value );

Description

This function set a tag.

Inputs

fo

Pointer to a valid FileOperations class.

tag

Tag to set. Valid tags are:

AFC_FILEOPS_TAG_ERROR

set last_error to the passed value.

AFC_FILEOPS_TAG_BLOCK_CHOWN

Flag TRUE/FALSE. If TRUE, afc_fileops_chown() will fail if it cannot chown the file.

AFC_FILEOPS_TAG_BLOCK_CHMOD

Flag TRUE/FALSE. If TRUE, afc_fileops_chmod() will fail if it cannot chmod the file.

AFC_FILEOPS_TAG_BLOCK_UTIME

Flag TRUE/FALSE. If TRUE, afc_fileops_utime() will fail if it cannot setutime the file.

AFC_FILEOPS_TAG_BLOCK_MKDIR_EXISTS

Flag TRUE/FALSE. If TRUE, afc_fileops_mkdir() will fail if it cannot create a dir.

AFC_FILEOPS_TAG_STAT

You can pass a valid stat structure as argument and owner, group and mode will be taken from this stat file.

AFC_FILEOPS_TAG_OWNER

The numerical value for the owner of any new/copied file. Default value is -1 which means "current user"

AFC_FILEOPS_TAG_GROUP

The numerical value of the groupof any new/copied file. Default value is -1 which means "current group"

AFC_FILEOPS_TAG_MODE

The numerical value of the mode of any new/copied file. Default value is -1 which means "current mode"

AFC_FILEOPS_TAG_BUFFER

Buffr size for copy operations. Default value is 4096 bytes (AFC_FILEOPS_COPY_DEFAULT_BUFFER)

value

Value to set to the tag.

Result

the return code should be AFC_ERR_NO_ERROR

See Also