function checkFolder(path){ var folder = Folder(path) if(!folder.exists) folder.create() } 转载于:https://www.cnblogs.com/huangshiyu13/p/6283512.html