Move escape file path to helper.py file

This commit is contained in:
Jeena 2021-09-08 11:41:27 +09:00
parent 58ec300845
commit 7e0fea113b
2 changed files with 6 additions and 1 deletions

4
helper.py Normal file
View file

@ -0,0 +1,4 @@
# Helper functions used by differet classes
def escape_file_path(file_path):
return file_path.replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace("&", "\&")