diff --git a/www/create_listing.py b/create_listing.py similarity index 91% rename from www/create_listing.py rename to create_listing.py index eebb64f..c57c1a8 100644 --- a/www/create_listing.py +++ b/create_listing.py @@ -5,7 +5,7 @@ import os import time SKIPLIST = ('_DIRECTORY.json',) -DIRECTORIES_SUPPLIED = ['img', 'audio', 'maps', 'data'] +DIRECTORIES_SUPPLIED = ['www/img', 'www/audio', 'www/maps', 'www/data'] def legal_file_name(fname: str) -> bool: diff --git a/www/replace_special_symbols.py b/replace_special_symbols.py similarity index 96% rename from www/replace_special_symbols.py rename to replace_special_symbols.py index 575ae62..fd6aa14 100644 --- a/www/replace_special_symbols.py +++ b/replace_special_symbols.py @@ -7,7 +7,7 @@ def replace_special_symbols(s: str) -> str: return s.replace('!', '_PIDOR_').replace('[', '_SUPER_').replace(']', '_PEDIK_').replace('$', '_SEMENCUM_').replace('%', '_RAZRABI_PIDORASI').replace('(', '_SOSI_').replace(')', '_BEBRA_') -DIRECTORY = Path('img') +DIRECTORY = Path('www/img') def cast_symbols(dir_: Path, indent: int = 0) -> int: renamed = 0 for file_name in os.listdir(dir_):