Jump to content

wpclsFileSysExists

From EDM2
Revision as of 23:18, 19 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpclsFileSysExists}} This class method returns the object if the specified file or directory already exists in the given folder. == Syntax == _wpclsFileSysExists(somSelf, Folder, pszFilename, attrFile) == Parameters == ;''somSelf'' (M_WPFileSystem *) - input :Pointer to the WPFileSystem class object. ;''Folder'' (SOMAny *) - input :Pointer to folder in which to search for file or directory. ;''pszFilename'' (PSZ) - input :Name of file or direc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This class method returns the object if the specified file or directory already exists in the given folder.

Syntax

_wpclsFileSysExists(somSelf, Folder, pszFilename, attrFile)

Parameters

somSelf (M_WPFileSystem *) - input
Pointer to the WPFileSystem class object.
Folder (SOMAny *) - input
Pointer to folder in which to search for file or directory.
pszFilename (PSZ) - input
Name of file or directory on which search is to be performed.
attrFile (ULONG) - input
Flag specifying whether name to be searched is a file or directory.

Returns

Object (WPObject) - returns
Pointer to the object found.
NULL
Indicates that the object was not found.

Remarks

This method is specific to version 3, or higher, of the OS/2 operating system.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time.

Example Code

#define INCL_WINWORKPLACE
#include <os2.png>

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);

Related Methods

  • None