
walk
The
walk
command returns a formatted list of folders and files in a specified recorder path.
Command line structure (required parameters in bold):
walk
device
path
type
levels
Available parameters and arguments for this command are:
Parameter
Argument
Description
device
50001
192.168.0.51
VN_Recorder
The serial number (ID) of the recorder.
The IP address of the recorder.
The user-defined name of the recorder.
path
String
Example:
/folder1
The path from which the walk command is
processed.
type
v
Video
a
Audio
w
Whiteboard
d
Data
Specifies the type of files to return if they exist. If not specified, all files are
returned.
levels
1
to
10
Level of folder depth the walk function
searches. If a level number is not specified,
the maximum of 10 is applied.
For the following examples:
VNR 100:
Name =
100_Device1
, ID =
10001
, IP =
192.168.0.11
VNM Recorder:
Name =
5ch_Device1
, ID =
50001
, IP =
192.168.0.51
Example 1 - Return the contents of only the root recording directory on a VNR 100.
walk
10001
path=
/
levels=
1
]
Returns:
[["/",["folder1","folder2","folder3"],[]]]
Example 2 - Return the contents of two levels of directories from the root on a
VNM Recorder.
walk
50001
path=
/
levels=
2
]
Returns:
[["/",["folderA","folderB","folderC"],
[]],["/folderA",[],[]],["/folderB,[],[]],["/folderC",
[],["FileC_20001.0.0_r0_s0.rec","FileC_20001.A0.0_r1_s0.rec"]]]
Example 3 - Return only the audio files from the directory named
folder3
on a VNR 100.
walk
10001
path=
/folder3
type=
a
levels=
1
]
Returns:
[["/folder3",[],["File3_20001.A0.0_r1_s0.rec"]]]
VNM EC 200 • Reference Information
214
Summary of Contents for VNM EC 200
Page 6: ......