Skip to content

Commit

Permalink
Fixed Os_Ext.move when COPY_ATTRIBUTES not supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Apr 23, 2024
1 parent ea59efc commit ffc3f39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/jvm/src/main/scala/org/sireum/Os_Ext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ object Os_Ext {
if (Os.isWin) {
JFiles.move(p, t)
} else {
JFiles.move(p, t, SCO.COPY_ATTRIBUTES)
try JFiles.move(p, t, SCO.COPY_ATTRIBUTES) catch {
case _: Exception => JFiles.move(p, t)
}
}
}
}
Expand Down

0 comments on commit ffc3f39

Please sign in to comment.