afc_fileops_exists

Name

afc_fileops_exists  -- Check whether a file/dir exists in file system

Synopsis

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

Description

This function checks whether the provided file_name is present in the file system or not.

Inputs

fo

Pointer to a valid FileOperations class.

file_name

The file/dir name to check

Result

AFC_ERR_NO_ERROR

The file/dir exists

AFC_FILEOPS_ERR_STAT

The file does not exists in the file system, or not enough permissions to stat the file.

See Also