was_updated: Was a file updated in the last hour?

View source: R/utils_file_io.R

was_updatedR Documentation

Was a file updated in the last hour?

Description

Was a file updated in the last hour?

Usage

was_updated(file, alert = TRUE)

Arguments

file

chr file path

alert

alert Whether to give a console alert that the file was updated.

Value

lgl whether the file was updated

Examples

x <- UU::mkpath(tempfile(), mkfile = TRUE)
was_updated(x)
file.remove(x)

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