afc_fileops_del

Name

afc_fileops_del  -- Delete a file/dir

Synopsis

int afc_fileops_del ( FileOperations * fo, char * file_name );

Description

This function deletes the given file or dir provided with file_name. If you provide a directory, then this function recurively deletes all dir contents.

Inputs

fo

Pointer to a valid FileOperations class.

file_name

The file/dir name to work on

Result

AFC_ERR_NO_ERROR

No error occurred

AFC_FILEOPS_ERR_RMDIR

Errors removing a directory

AFC_FILEOPS_ERR_UNLINK

Errors removing a file

See Also