We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4760b03 + 18ded91 commit fe66b3fCopy full SHA for fe66b3f
1 file changed
src/NsxLibraryManager.Core/Services/FileInfoService.cs
@@ -297,6 +297,12 @@ public Task<Result<bool>> DeleteIconDirectoryFiles()
297
{
298
var path = Path.Combine("images", "icon");
299
var iconPath = Path.Combine(Directory.GetCurrentDirectory(), @"wwwroot", path);
300
+ if (!Directory.Exists(iconPath))
301
+ {
302
+ _logger.LogInformation("Icon directory {IconPath} does not exist creating", iconPath);
303
+ Directory.CreateDirectory(iconPath);
304
+ return Task.FromResult(Result.Success(true));
305
+ }
306
var iconFiles = Directory.GetFiles(iconPath);
307
var deleteSuccess = true;
308
foreach (var iconFile in iconFiles)
0 commit comments