set-file-modified-time ( path timestamp -- ) (original) (raw)
set-file-modified-time ( path timestamp -- )
Unix file attributes » Unix file timestamps
Prev: | set-file-access-time ( path timestamp -- ) |
---|
Inputs
path | a pathname string |
---|---|
timestamp | a timestamp |
Outputs
None
Word description
Sets a file's last modified timestamp, or write timestamp.
Definition
USING: accessors arrays io.files.info kernel ;
: set-file-modified-time ( path timestamp -- )
over file-info accessed>> swap 2array set-file-times ;