Skip to content
class method

File.lutime

(::Time | ::Numeric atime, ::Time | ::Numeric mtime, *::string | ::_ToPath file_name) -> ::Integer
File.lutime(atime, mtime, file_name, ...) → integer

Sets the access and modification times of each named file to the first two arguments. If a file is a symlink, this method acts upon the link itself as opposed to its referent; for the inverse behavior, see File.utime. Returns the number of file names in the argument list.

See also .lstat .mkfifo .link .mtime also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0