Project for the Hybrid Publishing thesis award of 2018.
By Julie Boschat Thorez and Cristina Cochior.
https://www.wdka.nl/work/sic-scripture
http://51.255.169.99:8080/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
560 B
20 lines
560 B
5 years ago
|
import sys, os
|
||
|
import re
|
||
|
|
||
|
folder_path = "static/files/"
|
||
|
olds = "'"
|
||
|
new = ""
|
||
|
|
||
|
def replace(folder_path, old, new):
|
||
|
for path, subdirs, files in os.walk(folder_path):
|
||
|
for name in files:
|
||
|
for old in olds:
|
||
|
if(old.lower() in name.lower()):
|
||
|
file_path = os.path.join(path,name)
|
||
|
name = name.lower().replace(old,new)
|
||
|
new_name = os.path.join(path,name)
|
||
|
print(new_name)
|
||
|
os.rename(file_path, new_name)
|
||
|
|
||
|
replace(folder_path, olds, new)
|