Documentation

xPCFSDirStructSize

Get number of items in folder

Prototype

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

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

Was this topic helpful?