Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| module:filelist [2021/04/11 22:33] – Add the JSON output section digital man | module:filelist [2021/04/18 18:37] (current) – [File List] link to FILELIST digital man | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== File List ====== | ====== File List ====== | ||
| - | New for Synchronet v3.19, this JavaScript utility script ('' | + | New for Synchronet v3.19, this JavaScript utility script ('' |
| Normally executed via [[util: | Normally executed via [[util: | ||
| Line 27: | Line 27: | ||
| -json[=spaces] | -json[=spaces] | ||
| -new=< | -new=< | ||
| - | -p=[list] specify comma-separated list of property names to print | + | -p=<list> specify comma-separated list of property names to print |
| + | -cdt include credit value instead of file size | ||
| -ext include extended file descriptions | -ext include extended file descriptions | ||
| -ext=< | -ext=< | ||
| Line 33: | Line 34: | ||
| -date=< | -date=< | ||
| -size=< | -size=< | ||
| - | -name=< | + | -name=< |
| -pad pad filename with spaces | -pad pad filename with spaces | ||
| + | -adate | ||
| -v increase verbosity (detail) of output | -v increase verbosity (detail) of output | ||
| </ | </ | ||
| Line 89: | Line 91: | ||
| * With '' | * With '' | ||
| * With '' | * With '' | ||
| + | |||
| + | === Free Form === | ||
| + | |||
| + | The default non-JSON (free form) text output is controlled with the '' | ||
| + | |||
| + | * Default: file names only | ||
| + | * With '' | ||
| + | * With '' | ||
| + | * With '' | ||
| + | |||
| + | To increase the maximum length of the file name displayed, use the '' | ||
| + | |||
| + | By default, filenames shorter than the maximum are not padded (between the base file name and suffix/ | ||
| + | To pad (with spaces) short names and file extensions, use the '' | ||
| + | |||
| + | By default, extended descriptions are indented with a prefix that matches the '' | ||
| + | |||
| + | To choose your own file object properties to include in the list, specify the comma-separated list of property names with the '' | ||
| + | |||
| + | To choose your own '' | ||
| + | |||
| + | The default date/time format will be either " | ||
| + | |||
| + | The default file credit/size format is a rounded floating point format with a single digit of precision and a suffix of G, M, K or B. To choose an alternate file credit/size format, specify the format number (0-12) with the '' | ||
| + | |||
| + | == Size Formats == | ||
| + | The formatting options for file sizes (bytes) or credit values: | ||
| + | ^ 0((FILES.BBS compatible)) | ||
| + | | 9805 | 10K | 9.6K | 9.58K | 10K | 9.6K | 9.58K | 0M | 0.0M | 0.01M | 0.009M | 9,805B | 10K | | ||
| + | | 3177 | 3K | 3.1K | 3.10K | 3K | 3.1K | 3.10K | 0M | 0.0M | 0.00M | 0.003M | 3,177B | 3K | | ||
| + | | 5120 | 5K | 5.0K | 5.00K | 5K | 5.0K | 5.00K | 0M | 0.0M | 0.00M | 0.005M | 5,120B | 5K | | ||
| + | | 15872 | 16K | 15.5K | 15.50K | 16K | 15.5K | 15.50K | 0M | 0.0M | 0.02M | 0.015M | 16K | 16K | | ||
| + | | 61114 | 60K | 59.7K | 59.68K | 60K | 59.7K | 59.68K | 0M | 0.1M | 0.06M | 0.058M | 60K | 60K | | ||
| + | | 349925 | 342K | 341.7K | 341.72K | 342K | 341.7K | 341.72K | 0M | 0.3M | 0.33M | 0.334M | 342K | 342K | | ||
| + | | 350 | 350B | 350B | 350B | 0K | 0.3K | 0.34K | 0M | 0.0M | 0.00M | 0.000M | 350B | 1K | | ||
| + | | 2134 | 2K | 2.1K | 2.08K | 2K | 2.1K | 2.08K | 0M | 0.0M | 0.00M | 0.002M | 2,134B | 2K | | ||
| + | | 8846 | 9K | 8.6K | 8.64K | 9K | 8.6K | 8.64K | 0M | 0.0M | 0.01M | 0.008M | 8,846B | 9K | | ||
| + | | | ||
| + | | 266531 | 260K | 260.3K | 260.28K | 260K | 260.3K | 260.28K | 0M | 0.3M | 0.25M | 0.254M | 260K | 260K | | ||
| + | | | ||
| + | |||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[: | * [[: | ||