Handbook
Glossary
set-file-times ( path timestamps -- )
Unix file attributes
ยป
Unix file timestamps
Next:
set-file-access-time ( path timestamp -- )
Vocabulary
io
.
files
.
info
.
unix
Inputs
path
a pathname string
timestamps
an array of two timestamps
Outputs
None
Word description
Sets the access and write timestamps for a file as provided in the input array. A value of
f
provided for either of the timestamps will not change that timestamp.
Definition
USING:
io.backend
io.files.info.unix.private
kernel
unix
unix.ffi
;
IN:
io.files.info.unix
:
set-file-times
( path timestamps -- )
[
normalize-path
]
dip
timestamps>byte-array
[
utimes
]
unix-system-call
drop
;