Function CDM_FileExists


Definition:#include <CDM.h>
Prototype:int CDM_FileExists(const char *path);
Arguments:

path: The file or directory to be checked for existence (const char *)


Prototype:int CDM_FileExists(Tcl_Obj *path);
Arguments:

path: The file or directory to be checked for existence (Tcl_Obj *)

C/C++ API Sections
Tcl API Sections
Description
Return Value
Notes
See Also
Index

Description:

int CDM_FileExists(const char *path):
This function can be used to check whether a path (either a file or a directory) exists. This function returns 1 if the provided path exists and the current user has search privileges for the directories leading to it, 0 otherwise.

int CDM_FileExists(Tcl_Obj *path):
This function can be used to check whether a path (either a file or a directory) exists. This function returns 1 if the provided path exists and the current user has search privileges for the directories leading to it, 0 otherwise.

Return Value:

int CDM_FileExists(const char *path):
This function will return 1 when the specified path exists and all the parent directories are readable from the current user, 0 otherwise. This function will never report an error. In case of an error, 0 will be returned.

int CDM_FileExists(Tcl_Obj *path):
This function will return 1 when the specified path exists and all the parent directories are readable from the current user, 0 otherwise. This function will never report an error. In case of an error, 0 will be returned.

Notes:

int CDM_FileExists(const char *path):
This function is equivalent to the "file exists path" Tcl command.

int CDM_FileExists(Tcl_Obj *path):
This function is equivalent to the "file exists path" Tcl command.


Generated by: petasis@aias on Wed Aug 16 10:31:57 PM EEST 2006.