该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


names = Files In Directory( path, <recursive> );
names = Files In Directory( "$SAMPLE_DATA" );
Notice that the files within the Design Experiment subdirectory are not included. And only files in the root $SAMPLE_DATA directory are listed.
To return a list of all file names, add the optional recursive argument to Files In Directory:
names = Files In Directory( "$SAMPLE_DATA", recursive );
names = Files In Directory( "$SAMPLE_DATA", recursive );
For( i = 1, i <= N Items( names ), i++,
names[i] = Convert File Path( "$SAMPLE_DATA" ) || names[i]
The Files in Directory command accepts native and POSIX paths, as well as paths using path variables. See “Path Variables” on page 129 in the “Types of Data” chapter for details on working with paths.