Skip to content

Instantly share code, notes, and snippets.

@Windows200000
Windows200000 / Windows_Explorer_Sorting_Test.py
Last active September 17, 2023 18:02 — forked from CoDEmanX/generate_files.py
Allowed filename characters (and how Windows Explorer sorts them)
# Original from: github.com/CoDEmanX/
import unicodedata
allowed = []
forbidden = []
folder = 'output/' # needs to be created beforehand
ext = '.txt'
for i in range(1, 256): #Windows200000 - changed 0 to 1 to avoid null character
letter = chr(i)