from uuid import uuid4 import random extintions = ['zip', 'exe', 'txt', 'py', 'mp4', 'mp3', 'png'] def generate_files(files_len, folder): for i in range(files_len): file_name = f'{folder}/{str(uuid4())}.{random.choice(extintions)}' file_size = (1024 * 1024) * random.randint(1, 10) file = open(file_name, 'wb') file.write(b'\b' * file_size) file.close() generate_files(20, 'test')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter