Skip to Main Content Skip to Search
Product Documentation

xPCFSDirItems - Get contents of specified folder on target computer

Prototype

void xPCFSDirItems(int port, const char *path, dirStruct *dirs, int numDirItems);

Arguments

port

Enter the value returned by either the function xPCOpenSerialPort or the function xPCOpenTcpIpPort.

path

Enter the path on the target computer.

dirs

Enter the structure to contain the contents of the folder.

numDirItems

Enter the number of items in the folder.

Description

The xPCFSDirItems function copies the contents of the target computer folder specified by path. The xPCFSDirItems function copies the listing into the dirs structure, which must be of size numDirItems. Use the xPCFSDirStructSize function to obtain the size of the folder for the numDirItems parameter.

See Also

API functions xPCFSDirStructSize, dirStruct

File object method dir

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS