Parameters & Returns
Parameters
Returns
Quick Summary
Returns the type of a file system entry.
Takes a path.
Returns 0 if it doesn't exist, 1 if it's a file, 2 if it's a directory.
Technical Exegesis...
Returns the type of the specified path: 0 if it doesn't exist, 1 if it's a file, 2 if it's a directory.
Uses GetFileAttributesA to check FILE_ATTRIBUTE_DIRECTORY. Returns 0 if the path is null or the attributes cannot be retrieved. Useful for determining whether a path is a file or directory before performing operations.