本站改版新增arduino频道
main.py
import os import json def listdir(cwd = '.'): filenames = os.listdir(cwd) files = [] for filename in filenames: if cwd == '/': cwd = '' status = os.stat(cwd + '/' + filename) files.append({ 'filename': filename, 'isdir': True if status[0] & 16384 else False }) return files print(listdir(cwd = '.'))
Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号
执行时间: 0.0095741748809814 seconds