bstraehle commited on
Commit
7f80b30
·
verified ·
1 Parent(s): 46ccaa3

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +3 -0
util.py CHANGED
@@ -13,6 +13,9 @@ def get_questions(file_path, level):
13
 
14
  return result
15
 
 
 
 
16
  def read_file(file_path):
17
  ext = os.path.splitext(file_path)[1].lower()
18
 
 
13
 
14
  return result
15
 
16
+ def is_ext(file_path, ext):
17
+ return os.path.splitext(file_path)[1].lower() == ext.lower()
18
+
19
  def read_file(file_path):
20
  ext = os.path.splitext(file_path)[1].lower()
21