Skip to content

Commit 9dd65cc

Browse files
committed
Remove the folders from the install description
1 parent 013cb4a commit 9dd65cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Low Code App Editor_1/Controllers/ExportController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private static string ExportPackage(IEngine engine, IEnumerable<App> apps, Expor
189189
sb.AppendLine($"File Version:");
190190

191191
// Add scripts
192-
foreach (var file in zip.GetEntries("AppInstallContent\\Scripts"))
192+
foreach (var file in zip.GetEntries("AppInstallContent\\Scripts").Where(x => !x.FullName.EndsWith("\\")))
193193
{
194194
sb.AppendLine($"Script\\{Path.GetDirectoryName(file.FullName)}");
195195
}
@@ -204,7 +204,7 @@ private static string ExportPackage(IEngine engine, IEnumerable<App> apps, Expor
204204
}
205205

206206
// Add CompanionFiles
207-
foreach (var file in zip.GetEntries("AppInstallContent\\CompanionFiles"))
207+
foreach (var file in zip.GetEntries("AppInstallContent\\CompanionFiles").Where(x => !x.FullName.EndsWith("\\")))
208208
{
209209
sb.AppendLine($"CompanionFile\\{file.FullName.Replace("AppInstallContent\\CompanionFiles\\", string.Empty)}");
210210
}

0 commit comments

Comments
 (0)