RosettaCodeData/Task/File-modification-time/R/file-modification-time.r
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

7 lines
222 B
R

# Get the value
file.info(filename)$mtime
#To set the value, we need to rely on shell commands. The following works under windows.
shell("copy /b /v filename +,,>nul")
# and on Unix (untested)
shell("touch -m filename")