Section 8. Operation
ListFiles
requires a minimum
.csipasswd
access level of
3
(read only).
Table 122.
ListFiles API Command Parameters
format
Specifies the format of the response. The values
html
,
json
, and
xml
are valid. If this parameter is omitted, or if the value is
html
, empty, or invalid, the response is HTML.
uri
If this parameter is excluded, or if it is set to "datalogger"
(
uri=dl
) or an empty string (
uri=
), the file system will be sent
from the host CR1000.
1
1
Optionally specifies the URI to a
LoggerNet
datalogger station from which the file list will be
retrieved.
Examples:
http://192.168.24.106/?command=ListFiles
Response: returns the drive structure of the host CR1000 (CPU:, USR:,
CRD:, and USB:).
http://192.168.24.106/CPU/?command=ListFiles
Response: lists the files on the host CR1000 CPU: drive.
ListFiles Response
The format of the response depends on the value of the
format
parameter in the
command request. The response provides information for each of the files or
directories that can be reached through the CR1000 web server. The information
for each file includes the following:
Table 123.
ListFiles API Command Response
path
Specifies the path to the file relative to the URL path.
is_dir
A boolean value that will identify that the object is a directory if
set to true.
size
An integer that gives the size of for a file in bytes (the value of
is_dir is false) or the bytes free for a directory.
last_write
A string associated only with files that specifies the date and
time that the file was last written.
run_now
A boolean attribute applied by the CR1000 for program files
that are marked as currently executing.
run_on_power_up
A boolean attribute applied by the CR1000 for program files
that are marked to run when the CR1000 powers up or resets.
read_only
A boolean attribute applied by the CR1000 for a file that is
marked as read-only.
paused
A boolean attribute applied by the CR1000 that is marked to run
but the program is now paused.
HTML Response
When
html
is entered in the
ListFiles
format
parameter, the response will be
HTML. Following are example responses.
446
Содержание CR1000
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 36: ......
Страница 38: ......
Страница 40: ......
Страница 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Страница 96: ......
Страница 98: ...98 ...
Страница 302: ......
Страница 350: ...Section 8 Operation Figure 91 Pulse Sensor Output Signal Types Figure 92 Switch Closure Pulse Sensor 350 ...
Страница 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Страница 454: ...Section 8 Operation 8 8 1 Data Display Figure 116 Displaying Data with the Keyboard Display 454 ...
Страница 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Страница 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Страница 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Страница 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Страница 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Страница 478: ......
Страница 506: ......
Страница 536: ......
Страница 636: ......
Страница 642: ......
Страница 644: ......
Страница 676: ......
Страница 677: ......