We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e1435 commit 91b708cCopy full SHA for 91b708c
modules/core/src/main/scala/org/scalasteward/core/io/FileAlg.scala
@@ -88,8 +88,8 @@ object FileAlg {
88
override def removeTemporarily[A](file: File)(fa: F[A]): F[A] =
89
F.bracket {
90
F.delay {
91
- if (file.exists) Some(file.moveTo(File.newTemporaryFile(), overwrite = true))
92
- else None
+ val copyOptions = File.CopyOptions(overwrite = true)
+ if (file.exists) Some(file.moveTo(File.newTemporaryFile())(copyOptions)) else None
93
}
94
} { _ =>
95
fa
0 commit comments