xPCFSDirStructSize

Get number of items in folder

Prototype

int xPCFSDirStructSize(int port, const char *path);

Note

Do not use this C API type definition. Support for this type definition relies on support for the C API, which will be removed in a future release.

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

path

Enter the folder path on the target computer.

Return

Returns the number of items in the folder on the target computer. If this function detects an error, it returns -1.

Description

The xPCFSDirStructSize function returns the number of items in the folder on the target computer. Use this size as the numDirItems parameter in the xPCFSDirItems function.

Introduced in R2007a