Skip to content

Absolute paths support #13

@raulsh

Description

@raulsh

Hi,

I'm using s3-cache plugin and I need to cache an absolute path (/var/lib/docker), so for doing that compression lib must accept and work with absolute paths. There is a line that trim the first "/", and there is the reason that the plugin can't work with absolute path.

I know that this repo used by multiple cache plugins (not only s3), so there is a reason for trimming the path?

header.Name = strings.TrimPrefix(filepath.ToSlash(path), "/")

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