dever 6 سال پیش
والد
کامیت
4cfc0c5f41
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      demeter/core.py

+ 4 - 0
demeter/core.py

@@ -442,6 +442,10 @@ class File(object):
 	def cur_path():
 		return os.path.split(os.path.realpath(__file__))[0] + '/'
 
+	@staticmethod
+	def getFiles(path):
+		return os.listdir(path)
+
 	@staticmethod
 	def path():
 		return os.sys.path[0] + '/'