Skip to content

Config not passed along when concatenating with string #279

@etibarg

Description

@etibarg

Hi,

Using FilePathsBase concat method * does not pass along S3Path config. So I've ended up coding the following:

using AWSS3: S3Path
function Base.:(*)(fp::S3Path, str::AbstractString)
    S3Path(convert(String, fp) * str; config=fp.config)
end

Maybe there's a security reason I don't see that could justify not implementing this method?
I mean, we already have access to credentials in fp, so ...

Or is it just in line with #226?
e.g., the need to implement S3Path type-specific methods

Btw, using S3Path like a filesystem and not just a key-value store is sooo convenient.

Rgds,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions