diff --git a/backend/internal/bootstrap/application_images_bootstrap.go b/backend/internal/bootstrap/application_images_bootstrap.go index 19c9a46c..b0c0c0af 100644 --- a/backend/internal/bootstrap/application_images_bootstrap.go +++ b/backend/internal/bootstrap/application_images_bootstrap.go @@ -42,9 +42,15 @@ func initApplicationImages() error { name := f.Name() destFilePath := path.Join(dirPath, name) + // Skip directories + if f.IsDir() { + continue + } + h, err := utils.CreateSha256FileHash(destFilePath) if err != nil { - return fmt.Errorf("failed to get hash for file '%s': %w", name, err) + slog.Warn("Failed to get hash for file", slog.String("name", name), slog.Any("error", err)) + continue } // Check if the file is a legacy one - if so, delete it