Skip to main content

S3_File./

/subpath

Group: Operators

Documentation

Join two path segments together, normalizing the .. and . sub-paths.

Arguments

  • subpath: The path to join to the path of self.

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