Add jasofix/README.md
This commit is contained in:
11
jasofix/README.md
Normal file
11
jasofix/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```python
|
||||
def jasofix(directory):
|
||||
from os.path import join
|
||||
import os, unicodedata
|
||||
|
||||
for root, dirs, files in os.walk(directory):
|
||||
for file in files:
|
||||
if file != (normalized := unicodedata.normalize('NFC', file)):
|
||||
os.rename(join(root, file), join(root, normalized))
|
||||
print(normalized)
|
||||
```
|
||||
Reference in New Issue
Block a user