-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcommand-reference.golden
79 lines (52 loc) · 2.53 KB
/
command-reference.golden
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Generate a random directory hierarchy with some number of files
A pseudo-random directory hierarchy will be generated (seeded by this command's input parameters)
containing approximately the target number of files. The exact configuration of files and
directories in the hierarchy is probabilistically determined to mostly match the specified
parameters.
Generated files and directories are named using monotonically increasing numbers, where files are
named `n` and directories are named `n.dir` for a given natural number `n`.
By default, generated files are empty, but random data can be used as the file contents with the
`total-bytes` option.
Usage: ftzz [OPTIONS] --files <NUM_FILES> <ROOT_DIR>
Arguments:
<ROOT_DIR>
The directory in which to generate files
The directory will be created if it does not exist.
Options:
-n, --files <NUM_FILES>
The number of files to generate
Note: this value is probabilistically respected, meaning any number of files may be
generated so long as we attempt to get close to N.
--files-exact
Whether or not to generate exactly N files
-b, --total-bytes <NUM_BYTES>
The total amount of random data to be distributed across the generated files
Note: this value is probabilistically respected, meaning any amount of data may be
generated so long as we attempt to get close to N.
[default: 0]
--fill-byte <FILL_BYTE>
Specify a specific fill byte to be used instead of deterministically random data
This can be used to improve compression ratios of the generated files.
--bytes-exact
Whether or not to generate exactly N bytes
-e, --exact
Whether or not to generate exactly N files and bytes
-d, --max-depth <MAX_DEPTH>
The maximum directory tree depth
[default: 5]
-r, --ftd-ratio <FILE_TO_DIR_RATIO>
The number of files to generate per directory (default: files / 1000)
Note: this value is probabilistically respected, meaning not all directories will have N
files).
--seed <SEED>
Change the PRNG's starting seed
For example, you can use bash's `$RANDOM` function.
[default: 0]
-h, --help
Print help (use `-h` for a summary)
-q, --quiet...
Decrease logging verbosity
-v, --verbose...
Increase logging verbosity
-V, --version
Print version