feat: add --force flag to overwrite existing output files
This commit is contained in:
@@ -16,7 +16,7 @@ Useful for storage testing, transfer checks, and dumb-fun disk abuse.
|
||||
### Create a file
|
||||
|
||||
```bash
|
||||
python make_big_file.py <output> <size> [--chunk-size SIZE] [--sparse] [--quiet]
|
||||
python make_big_file.py <output> <size> [--chunk-size SIZE] [--sparse] [--force] [--quiet]
|
||||
```
|
||||
|
||||
Examples:
|
||||
@@ -26,6 +26,7 @@ python make_big_file.py test.bin 15GB
|
||||
python make_big_file.py dump.dat 1.5TiB --chunk-size 128MB
|
||||
python make_big_file.py tiny.bin 500MB --quiet
|
||||
python make_big_file.py sparse.img 20GB --sparse
|
||||
python make_big_file.py test.bin 15GB --force
|
||||
```
|
||||
|
||||
### Read a file
|
||||
@@ -66,4 +67,5 @@ Plain numbers are treated as bytes.
|
||||
## Notes
|
||||
|
||||
- `--sparse` is handy when you want a huge file without actually burning the disk.
|
||||
- `--force` overwrites an existing output file (without it, existing files are protected).
|
||||
- `--hash` is SHA256, because anything weaker would be cosplay.
|
||||
|
||||
Reference in New Issue
Block a user