This method is specific to version 3, or higher, of the OS/2 operating system.
This method returns the object if the specified file or directory already exists in the given folder.
#define INCL_WINWORKPLACE #include <os2.h> M_WPFileSystem *somSelf; /* Pointer to the WPFileSystem class object. */ SOMAny *Folder; /* Pointer to folder in which to search for file or directory. */ PSZ pszFilename; /* Name of file or directory on which search is to be performed. */ ULONG attrFile; /* Flag specifying whether name to be searched is a file or directory. */ WPObject Object *; /* Pointer to the object found. */ Object * = _wpclsFileSysExists(somSelf, Folder, pszFilename, attrFile);