path_manipulate {s3fs} | R Documentation |
Manipulate s3 uri paths
Description
s3_path_dir
returns the directory portion of s3 uri
s3_path_file
returns the file name portion of the s3 uri path
s3_path_ext
returns the last extension for a path.
s3_path_ext_remove
removes the last extension and return the rest of the s3 uri.
s3_path_ext_set
replace the extension with a new extension.
Usage
s3_path_dir(path)
s3_path_file(path)
s3_path_ext(path)
s3_path_ext_remove(path)
s3_path_ext_set(path, ext)
Arguments
path |
(character): A character vector of paths |
ext |
(character): New file extension |
Examples
## Not run:
# Require AWS S3 credentials
s3_path_dir("s3://my_bucket1/hi.txt")
s3_path_file("s3://my_bucket1/hi.txt")
## End(Not run)
[Package s3fs version 0.1.6 Index]