Garbage File Generator

This script generates fake media files with random filenames, valid-looking headers, and random sizes. It’s useful for stress-testing, dummy data creation, or filling directories with realistic-looking media without using real files.

Requirements

Setup

  1. Save the script as garbage_generator.py.
  2. Open a terminal in the folder containing the script.

Usage

Run the script like this:

python garbage_generator.py [options]

Options

Examples

Generate 1000 files in the default fake_media directory:

python garbage_generator.py -n 1000

Generate 50 files with filenames between 10–30 characters, saved to dummy_output:

python garbage_generator.py -n 50 -o dummy_output --min-len 10 --max-len 30

Notes