AdsDirExist

Tests whether a directory exists under the data root.

Harbour-style name: oads_DirExist (see Server filesystem).

Syntax

UNSIGNED32 AdsDirExist(ADSHANDLE hConnect, UNSIGNED8 *pucPath,
                       UNSIGNED16 *pbExists);

Parameters

Parameter Type Description
hConnect ADSHANDLE Connection handle (0 = default).
pucPath UNSIGNED8* Relative directory path.
pbExists UNSIGNED16* Out: 1 if directory exists, else 0.

Return Value

AE_SUCCESS (0). AE_ACCESS_DENIED if jail escape / remote gate off.

Description

Unlike AdsCheckExistence, this only returns true for directories.

Example

UNSIGNED16 ok = 0;
AdsDirExist(hConn, (UNSIGNED8*)"inbox", &ok);

See Also


This site uses Just the Docs, a documentation theme for Jekyll.