file_exists: Check if a file exists

Description Usage Arguments Value Examples

View source: R/file_exists.R

Description

Check if a file exists

Usage

1
2
file_exists(path, data_source = flyio_get_datasource(),
  bucket = flyio_get_bucket(data_source))

Arguments

path

the entire path for the file

data_source

the name of the data source, if not set globally. s3, gsc or local

bucket

the name of the bucket, if not set globally

Value

logical. if the file exists or not

Examples

1
2
3
4
5
6
7
8
9
# Check with data source local
file_exists(path = "tests/mtcars.csv", data_source = "local")
## Not run: 
# Check with data source GCS
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
file_exists(path = "tests/mtcars.csv")

## End(Not run)

flyio documentation built on Oct. 31, 2019, 4:59 p.m.