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