Skip to content

Commit

Permalink
Update GroupEvaluator.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Sep 7, 2024
1 parent 5166274 commit 31b4e6a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions main/eval/src/mill/eval/GroupEvaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -316,19 +316,6 @@ private[mill] trait GroupEvaluator {
}
}

// Remove any empty `.dest/` folders to tidy up the filesystem. Otherwise
// tasks that call `os.proc` or `T.dest` without actually doing anything with
// the folder will leave empty folders around cluttering the disk
this.synchronized {
for {
p <- usedDest
if os.list.stream(p).headOption.isEmpty
// workers can be used after they return their value and
// may need to continue working with their `T.dest`,
if !isWorker
} os.remove(p)
}

multiLogger.close()
(newResults, newEvaluated)
}
Expand Down

0 comments on commit 31b4e6a

Please sign in to comment.