User`s guide
dir
Purpose List contents of current folder on target P C
Syntax MATLAB command line
dir(file_obj)
Arguments
file_obj
Name of the xpctarget.ftp or xpctarget.fs
object.
Description Method of xpctarget.fsbase, xpctarget.ftp,andxpctarget.fs
objects. From the h ost PC, lists the contents of the current folder on
the target PC.
To get the results in an M-by-1 structure, use a syntax like
ans=dir(file_obj). This syntax returns a structure like the following:
ans =
1x5 struct array with fields:
name
date
time
bytes
isdir
where
•
name — Name of an object in the folder, shown as a cell array. The
name, stored in the first element of the cell array, can have up to
eight characters. The three-character file extension is stored in the
second element of the cell array.
•
date — Date of the last save of that object
•
time — Time of the last save of that obje ct
•
bytes — Size in bytes of that object
18-11