---
name: "PathIsDirectoryA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/PathIsDirectoryA"
---

# PathIsDirectoryA(3w)

## NAME

**PathIsDirectoryA** (SHLWAPI.@)

## SYNOPSIS

BOOL PathIsDirectoryA\
  (\
   LPCSTR *lpszPath*\
  )

## DESCRIPTION

Determine if a path is a valid directory.

## PARAMS

*lpszPath* **\[In\]**  Path to check.

## RETURNS

**FILE\_ATTRIBUTE\_DIRECTORY** if *lpszPath* exists and can be read (See Notes) **FALSE** if *lpszPath* is invalid or not a directory.

## NOTES

Although this function is prototyped as returning a **BOOL**, it returns **FILE\_ATTRIBUTE\_DIRECTORY** for success. This means that code such as: \
\
   if (PathIsDirectoryA("c:\\windows\\") == TRUE)\
\
     ...

will always fail.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

Implemented in **"dlls/shlwapi/path.c"**.

Debug channel **"shell"**.
