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):