Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srbcheema1 committed Sep 8, 2018
1 parent a1c9a93 commit c3d4c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ def verify_folder(folder,debug=False):
if(debug): print('creating folder '+ folder)
os.makedirs(folder)
elif os.path.isfile(folder):
if(debug): print('there exists folder of same name')
if(debug): print('there exists file of same name')

def verify_file(file_path):
if not os.path.exists(file_path):
if(debug): print('creating file '+ file_path)
file_ = open(file_path, 'w')
file_.close()
elif os.path.isdir(file_path):
if(debug): print('there exists file of same name')
if(debug): print('there exists folder of same name')

0 comments on commit c3d4c18

Please sign in to comment.