Is there a os.utime() that doesn't follow links? #21508
-
I'm writing a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I took a shot at writing a
|
Beta Was this translation helpful? Give feedback.
-
I was able to resolve the issue by using the
|
Beta Was this translation helpful? Give feedback.
-
The alternative would be to use a fixed array, which is only data. Since this array size is known, and will never change in size, fixed is likely better here. times := [C.timeval{u64(actime), u64(0)}, C.timeval{u64(modtime), u64(0)}]!
if C.lutimes(&char(path.str), voidptr(×)) != 0 {
return error('lutime failed (${C.errno})')
} |
Beta Was this translation helpful? Give feedback.
I was able to resolve the issue by using the
data
member ofArray
.