python 获取文件夹的日期
def getDirDate(alName):
alRootPath = IP + rootPath + '/' + alName
if os.path.exists(alRootPath):
date = os.path.getmtime(alRootPath)
timeStruct = time.localtime(date)
timeStr = time.strftime('%Y-%m-%d %H:%M:%S',timeStruct)
return timeStr