S3_File.join
joinsubpaths
Group: Calculations
Documentation
Join two or more path segments together, normalizing the ..
and .
subpaths.
Arguments
sub-paths
: The path segment or segments to join to the path ofself
.
Returns
- An
S3_File
representing the joined and normalised path, with the same credentials.
Remarks
S3 Directory Handling
Note that regular S3 buckets do not have a 'native' notion of directories, instead they are emulated using prefixes and a delimiter (in Enso, the delimiter is set to "/").
The trailing slash determines if the given path is treated as a directory or as a regular file.
However, for ease-of-use, if a path without a trailing slash is used
with the /
operator it will be accepted and the sub paths will be
resolved, even though such a path would not be treated as a directory
by any other operations.
See: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-folders.html