last_updated: Gather last updated times for on-disk files

View source: R/utils_file_io.R

last_updatedR Documentation

Gather last updated times for on-disk files

Description

Check the last modified time files or paths

Usage

last_updated(x, path = FALSE, ...)

Arguments

x

(chr) file path to check last updated time

path

(lgl) whether x is a path and all files should be checked

...

Arguments passed on to base::list.files

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

all.files

a logical value. If FALSE, only the names of visible files are returned (following Unix-style visibility, that is files whose name does not start with a dot). If TRUE, all file names will be returned.

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned.

recursive

logical. Should the listing recurse into directories?

ignore.case

logical. Should pattern-matching be case-insensitive?

include.dirs

logical. Should subdirectory names be included in recursive listings? (They always are in non-recursive ones).

no..

logical. Should both "." and ".." be excluded also from non-recursive listings?

Value

(POSIXct) Last modified time

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, ext(), file_fn(), is_filepath(), list.files2(), load_obj(), make_names(), mkpath(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()


yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.