#!/bin/bash

# Create directories with various challenging names
mkdir -p "empty_folder"
mkdir -p "folder with spaces"
mkdir -p "folder_with_underscores"
mkdir -p "folder-with-hyphens"
mkdir -p "folder.with.dots"
mkdir -p "folder!@#\$%^&*()"
mkdir -p "folder[]{}<>"
mkdir -p "folder_with_unicode_ñ_ä_漢字"
mkdir -p "folder_with_newline
newline"
mkdir -p "folder_with_tab	tab"
mkdir -p "folder_with_backslash\\"
mkdir -p "folder_with_colon:"
mkdir -p "folder_with_semicolon;"
mkdir -p "folder_with_question_mark?"
mkdir -p "folder_with_star*"
mkdir -p "folder_with_pipe|"
mkdir -p "folder_with_.._double_dot"
mkdir -p "folder_with_...._multiple_double_dots"

# Create files with various challenging names
touch "empty_file.txt"
touch "file with spaces.txt"
touch "file_with_underscores.txt"
touch "file-with-hyphens.txt"
touch "file.with.dots.txt"
touch "file!@#\$%^&*().txt"
touch "file[]{}<>.txt"
touch "file_with_unicode_ñ_ä_漢字.txt"
touch "file_with_newline
newline.txt"
touch "file_with_tab	tab.txt"
touch "file_with_backslash\\.txt"
touch "file_with_colon:.txt"
touch "file_with_semicolon;.txt"
touch "file_with_question_mark?.txt"
touch "file_with_star*.txt"
touch "file_with_pipe|.txt"
touch "file_with_.._double_dot.txt"
touch "file_with_...._multiple_double_dots.txt"

# Create files with URL-encoded names
touch "file%20with%20encoded%20spaces.txt"
touch "file%23with%23encoded%23hash.txt"
touch "file%25with%25encoded%25percent.txt"

# Create files with HTML special characters in the names
touch "file_with_<less>_and_>greater<.txt"
touch "file_with_&ampersand&.txt"
touch "file_with_'single'_and_\"double\"_quotes.txt"

# Create files with long names
touch "file_with_a_very_very_very_very_very_very_very_very_very_very_long_name.txt"

# Create nested directories
mkdir -p "nested folder/level 1/level 2/level 3"
touch "nested folder/level 1/level 2/level 3/file in nested folder.txt"

# Create directories and files with mixed cases
mkdir -p "MixedCaseFolder"
touch "MixedCaseFile.txt"
mkdir -p "anotherMixedCaseFolder"
touch "anotherMixedCaseFile.txt"

# Create hidden files and directories
mkdir -p ".hidden_folder"
touch ".hidden_file.txt"

echo "Additional files and folders created successfully."

