diff --git a/src/internal/m365/collection/drive/collections.go b/src/internal/m365/collection/drive/collections.go index 4469ded21..612b2412a 100644 --- a/src/internal/m365/collection/drive/collections.go +++ b/src/internal/m365/collection/drive/collections.go @@ -785,6 +785,8 @@ func (c *Collections) PopulateDriveCollections( } } + fmt.Printf("\n-----\n") + du, err := pager.Results() if err != nil { return du, nil, clues.Stack(err) @@ -815,6 +817,12 @@ func (c *Collections) processItem( "item_is_folder", isFolder) ) + fmt.Printf("\n\033[0;34m%s \033[0m| \033[0;31m %s \033[0m", itemID, itemName) + + for i := 0; i < 12-len(itemName); i++ { + fmt.Printf(" ") + } + if item.GetMalware() != nil { addtl := graph.ItemInfo(item) skip := fault.FileSkip(fault.SkipMalware, driveID, itemID, itemName, addtl) @@ -826,11 +834,14 @@ func (c *Collections) processItem( skipper.AddSkip(ctx, skip) logger.Ctx(ctx).Infow("malware detected", "item_details", addtl) + fmt.Printf("| \033[0;35m %s \033[0m", "") + return nil } // Deleted file or folder. if item.GetDeleted() != nil { + fmt.Printf("| \033[0;35m %s \033[0m", "") err := c.handleDelete( itemID, driveID, @@ -851,6 +862,8 @@ func (c *Collections) processItem( Label(fault.LabelForceNoBackupCreation) } + fmt.Printf("| \033[0;30m %s\033[0m", collectionPath.Folders()[2:]) + // Skip items that don't match the folder selectors we were given. if shouldSkip(ctx, collectionPath, c.handler, driveName) { logger.Ctx(ictx).Debugw("path not selected", "skipped_path", collectionPath.String())