List directory contents on SoC board
List Directory Contents of SoC Board Folder
List directory contents of a folder on a specified SoC board.
Create a Xilinx® processor hardware object and connect to the processor on-board the Xilinx SoC board.
p = xilinxsoc('192.168.1.101', 'root', 'root');
dir function to list the directory contents of the
Documents folder located in your home directory.
result = dir(p, 'Documents')
result = 1×3 struct array with fields: name folder isdir bytes
path — Path to a file or folder
character vector | string scalar
Path and name of file on the SoC board that you want the directory content listed for. You can use either the absolute path or the relative path from the home directory.
If no path is specified, your home directory is used.
result — Contents of directory
Returns information on contents of directory specified. If
no directory is specified by using the input
path, the home directory contents are listed.