Skip to content

Commit

Permalink
Added the function fill_in_the_blanks for modifing folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKesl committed May 29, 2023
1 parent 0ad087a commit 6ddd6ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,3 +1699,16 @@ def is_xyz_mol_match(mol: 'Molecule',
if element not in element_dict_xyz or element_dict_xyz[element] != count:
return False
return True


def fill_in_the_blanks(folder_name: str):
"""
Adding backslashes before spaces in the folder name.
Args:
folder_name (str): The string directory we want to modify.
Returns:
str: Modified folder name.
"""
return folder_name.replace(" ", "\ ")

0 comments on commit 6ddd6ea

Please sign in to comment.