Documentation

xPCFSDirSize

Return size of specified folder listing on target computer

Prototype

int xPCFSDirSize(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 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

Was this topic helpful?