Learn R Programming

s3fs (version 0.1.7)

exists: Download files and directories

Description

s3_file_exists check if file exists in AWS S3

s3_dir_exists check if path is a directory in AWS S3

Usage

s3_file_exists(path)

s3_dir_exists(path = ".")

Value

logical vector if file exists

Arguments

path

(character) s3 path to check

Examples

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

temp_file = s3_file_temp(tmp_dir= "MyBucket")
s3_file_create(temp_file)

s3_file_exists(temp_file)
}

Run the code above in your browser using DataLab