@@ -9,11 +9,11 @@ Biasing the distribution this way ensures that each directory has a similar numb
9
9
* Download Binary
10
10
- curl
11
11
``` sh
12
- sudo curl https://github.com/joshuaboud/gen-dataset/releases/download/v1.1 /gen-dataset -o /usr/local/bin/gen-dataset
12
+ sudo curl https://github.com/joshuaboud/gen-dataset/releases/download/v1.2 /gen-dataset -o /usr/local/bin/gen-dataset
13
13
```
14
14
- wget
15
15
``` sh
16
- sudo wget https://github.com/joshuaboud/gen-dataset/releases/download/v1.1 /gen-dataset -P /usr/local/bin
16
+ sudo wget https://github.com/joshuaboud/gen-dataset/releases/download/v1.2 /gen-dataset -P /usr/local/bin
17
17
```
18
18
* Mark Executable
19
19
``` sh
@@ -32,18 +32,22 @@ Biasing the distribution this way ensures that each directory has a similar numb
32
32
### Usage
33
33
```
34
34
usage:
35
- gen-dataset -d -b -c [ -s -w -t ] [path]
35
+ gen-dataset -c [ -b -d -s -t - w -y ] [path]
36
36
37
37
flags:
38
- -d, --depth <int> - number of directory levels
39
38
-b, --branches <int> - number of subdirectories per directory
40
39
-c, --count <int> - total number of files to create
40
+ -d, --depth <int> - number of directory levels
41
41
-s, --size <float [K..T][i]B> - file size
42
- -w, --max-wait <float (seconds)> - max random wait between file creation
43
42
-t, --threads <int> - number of parallel file creation threads
43
+ -w, --max-wait <float (seconds)> - max random wait between file creation
44
44
-y, --yes - don't prompt before creating files
45
45
```
46
46
#### Example
47
+ Generate 10 1GiB files in a single subdirectory named 'subdir':
48
+ ``` sh
49
+ gen-dataset -c 10 -s 1GiB subdir
50
+ ```
47
51
Generate 10,000 1M files in 3905 directories:
48
52
``` sh
49
53
gen-dataset -d 5 -b 5 -c 10000 -s 1MiB
0 commit comments