Documentation

xPCFSDir

Get contents of specified folder on target computer

Prototype

void xPCFSDir(int port, const char *path, char *data, int numbytes);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

path

Enter the path on the target computer.

data

The contents of the folder are stored in data, whose allocated size is specified in numbytes.

numbytes

Enter the size, in bytes, of the array data.

Description

The xPCFSDir function copies the contents of the target computer folder specified by path into data. The xPCFSDir function returns the listing in the data array, which must be of size numbytes. Use the xPCFSDirSize function to obtain the size of the folder listing for the numbytes parameter.

Introduced before R2006a

Was this topic helpful?