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