S3_File.new
S3_File.newuri credentials
Documentation
Given an S3 URI, create a file representation.
Arguments
uri
: The URI of the file. The URI must be in the forms3://bucket/path/to/file
. If the path contains.
or..
segments, they will be normalized.credentials
: The credentials to use when accessing the file. If not specified, the default credentials are used. Note, the credentials are not verified until the file is accessed.
Returns
- An
S3_File
object representing the file.
Errors
- If the URI is not in the correct format, an
Illegal_Argument
error is thrown.