Skip to content

Commit

Permalink
fix: Better output
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Dec 8, 2023
1 parent 196c325 commit 69fe011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ type Utils struct {
}

func (u *Utils) CleanFolder(dirPath string, keepCount int) error {
logrus.Debugf("Listing %s", dirPath)
dirs, err := u.Driver.ListDirs(dirPath)
if err != nil {
logrus.Error(err.Error())
}
logrus.Infof("Listing %s: %v", dirPath, dirs)
if len(dirs) > keepCount {
for _, old := range u.GetOldestN(dirs, len(dirs)-keepCount) {
path := path.Join(dirPath, old)
Expand Down

0 comments on commit 69fe011

Please sign in to comment.