19465
AD/DA Serie
import shutil
import os
# number of whales hunted by japan since 1988 when they joined the IWC, Japan left the IWC in 2019 to pick up commercial whaling again,
# arguing that the whale population has increased so that sustainable whaling is possible.
# Numbers are taken from https://www.statista.com/statistics/1186214/japan-whaling-number/, https://iwc.int/table_permit and https://www.statista.com/statistics/1186214/japan-whaling-number/
whales_killed = 19465
# Path to the file you want to copy
source_file = './whale.pdf'
# Path to the directory where you want to copy the file
destination_dir = '/mnt/'
# Ensure the destination directory exists
os.makedirs(destination_dir, exist_ok=True)
# Count to keep track of copied files
body_count = 0
# Loop to copy the file until the disk is full
while body_count <= whales_killed:
try:
# Define the destination file path
destination_file = os.path.join(destination_dir, f'whale_{body_count}.pdf')
# Check if the file already exists
if not os.path.exists(destination_file):
# Copy the file
shutil.copy(source_file, destination_file)
# Increment the copy count
body_count += 1
else:
print(f"File {destination_file} already exists.")
body_count += 1
except OSError as e:
# If the disk is full or another error occurs, break the loop
print(f"Disk is full or an error occurred: {e}")
body_count += 1
continue
AD/DA Serie
mixed media auf canvas
160x160cm
2025
Anfrage