Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
module:filelist [2021/04/12 00:01] – [Format Output] Add size/credit format option examples 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 101: | Line 103: | ||
To increase the maximum length of the file name displayed, use the '' | 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 '' | To pad (with spaces) short names and file extensions, use the '' | ||
- | To control | + | By default, extended descriptions are indented with a prefix that matches the '' |
- | To choose your own file properties to include in the list, specify the comman-separated list of property names with the '' | + | To choose your own file object |
- | To choose your own date/time display format, specify a [[custom: | + | 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 '' | 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 '' | ||
Line 113: | Line 118: | ||
== Size Formats == | == Size Formats == | ||
The formatting options for file sizes (bytes) or credit values: | The formatting options for file sizes (bytes) or credit values: | ||
- | ^ 0 ^ 1 ^ | + | ^ 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 | | | 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 | | | 3177 | 3K | 3.1K | 3.10K | 3K | 3.1K | 3.10K | 0M | 0.0M | 0.00M | 0.003M | 3,177B | 3K | |