Help Center

AfxPathIsDirectoryEmptyfunction

Determines whether a specified path is an empty directory.

String ManagementfunctionAfxPath.incdocumented

Syntax

FUNCTION AfxPathIsDirectoryEmpty (BYREF wszPath AS CONST WSTRING) AS BOOLEAN

Parameters

NameDescription
wszPathA string that contains the path to be tested.

Return value

Returns TRUE if wszPath is an empty directory. Returns FALSE if wszPath is not a directory, or if it contains at least one file other than "." or "..".

Description

Determines whether a specified path is an empty directory.

Remarks

"C:\" is considered a directory.

Reference

  • Include file AfxPath.inc
  • Defined in AfxNova/AfxPath.inc:458
  • Documented in String Management/Path and Url Procedures.md
  • Topic: Path and Url procedures