Learn R Programming

s3fs (version 0.1.7)

touch: Change file modification time

Description

Similar to fs::file_touch this does not create the file if it does not exist. Use s3_file_create to do this if needed.

Usage

s3_file_touch(path, ...)

Value

character vector of s3 uri paths

Arguments

path

(character): A character vector of paths or s3 uri

...

parameters to be passed to s3_copy_object

Examples

Run this code
if (FALSE) {
# Require AWS S3 credentials

dir = s3_file_temp(tmp_dir = "MyBucket")
path = s3_path(dir, letters[1:2], ext = "txt")

s3_file_touch(path)
}

Run the code above in your browser using DataLab