All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

set-file-dates Function

Summary

Sets the modification and access times of a file.

Package

system

Signature

set-file-dates file &key creation modification access

Arguments
file
A pathname designator.
creation
A non-negative integer, or nil.
modification
A non-negative integer, or nil.
access
A non-negative integer, or nil.
Description

The function set-file-dates sets the modification and access times of the file file for each of modification and access that is non-nil.

On Microsoft Windows, if creation is non-nil, the creation time of the file is also set. creation is ignored on other platforms.

creation, modification and access are interpreted as a universal time representing the time to set, unless it is nil in which case the corresponding time for file is not changed. Each keyword argument has default value nil.

An error of type file-error is signaled on failure.

See also

open


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02