dever пре 7 година
родитељ
комит
a9f1f6b039
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      demeter/core.py

+ 3 - 0
demeter/core.py

@@ -418,6 +418,9 @@ class File(object):
 			os.makedirs(path)
 		return path
 
+	def ext(path):
+		return os.path.splitext(path)[1]
+
 class Shell(object):
 	@staticmethod
 	def popen(command, sub=False, bg=False, timeout=0):