在 Raku 中复制文件时保留属性
Preserve attributes when copying a file in Raku
在 cli 上,在 linux 中,cp -p
保留文件上的 modified/accessed 时间戳。是否可以直接在 Raku 中执行相同操作?
Rosetta 示例使用 Nativecall,它可以通过系统调用完成,但看起来这些时间戳只能在 Raku 中读取。我错过了什么吗?
此操作在虚拟机级别受支持 nqp::copy
op, which eventually goes down to MVM_file_copy
at the MoarVM level, which defers to the equivalent operation in libuv, which, well, it does not support that, as pointed out in this nodejs issue. So no, you're not missing anything, except maybe copy
可以更好地记录。
在 cli 上,在 linux 中,cp -p
保留文件上的 modified/accessed 时间戳。是否可以直接在 Raku 中执行相同操作?
Rosetta 示例使用 Nativecall,它可以通过系统调用完成,但看起来这些时间戳只能在 Raku 中读取。我错过了什么吗?
此操作在虚拟机级别受支持 nqp::copy
op, which eventually goes down to MVM_file_copy
at the MoarVM level, which defers to the equivalent operation in libuv, which, well, it does not support that, as pointed out in this nodejs issue. So no, you're not missing anything, except maybe copy
可以更好地记录。