xPCFSDirSize

Return size of specified folder listing on target computer

Prototype

int xPCFSDirSize(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 size, in bytes, of the specified folder listing. If this function detects an error, it returns -1.

Description

The xPCFSDirSize function returns the size, in bytes, of the buffer required to list the folder contents on the target computer. Use this size as the numbytes parameter in the xPCFSDir function.

Introduced before R2006a