Skip to content

Commit 9719d0d

Browse files
committed
bugfix for windows
1 parent 2f585bb commit 9719d0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/components/Extensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ fun File.restore(projectPath: String): File {
157157
if (restore.exists()) {
158158
restore.delete()
159159
}
160-
this.copyTo(restore, true)
160+
FileWriter(restore.absolutePath).use { it.write(this.getContent()) }
161+
// this.copyTo(restore, true)
161162
return restore
162163
}
163164

0 commit comments

Comments
 (0)