Merge branch hotfix/code-generator-sub-folder-not-created into release/1.0.0

Title: fix: 🐛 解决出码的 disk publisher 不能正确地创建子目录的问题 

解决出码的 disk publisher 不能正确地创建子目录的问题

Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/4075073
This commit is contained in:
armslave.yy 2020-11-12 10:13:19 +08:00
commit d719c43e60

View File

@ -39,7 +39,7 @@ const writeFilesToFolder = async (folderPath: string, files: ResultFile[], fs: I
const writeSubFoldersToFolder = async (folderPath: string, subFolders: ResultDir[], fs: IFileSystem): Promise<void> => {
const promises = subFolders.map((subFolder) => {
return writeFolder(subFolder, folderPath, false, fs);
return writeFolder(subFolder, folderPath, true, fs);
});
await Promise.all(promises);