A simple Python script for generating empty files with specific sizes. Created as a utility for Ctructure.
python genfile.py [<fpathname> <fsize>]...
File size is specified by a summation of components. A component can have a modifier applied to it.
Modifier | Description |
---|---|
g|G | Gigabyte |
m|M | Megabyte |
k|K | Kilobyte |
1
= 1 byte1K
= 1 kilobyte1m
= 1 megabyte1G
= 1 gigabyte100+2k
= 100 bytes + 2 kilobytes1G+1M+3
= 1 gigabyte + 1 megabyte + 3 bytes