Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

touch

Use unix touch utility to change file's timestamp


Description

If neither a time or a reference file is provided then the current time is used. If the file does not already exist, it is created unless Create=FALSE.

Usage

touch(file, time, reference, timestoupdate = c("access", "modification"),
  Create = TRUE)

Arguments

file

Path to file to modify

time

Absolute time in POSIXct format

reference

Path to a reference file

timestoupdate

"access" or "modification" (default both)

Create

Logical indicating whether to create file (default TRUE)

Value

TRUE or FALSE according to success

Author(s)

jefferis


nat.utils

File System Utility Functions for 'NeuroAnatomy Toolbox'

v0.5.1
GPL-3
Authors
Gregory Jefferis
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.