Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions bucketio.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,14 +549,6 @@ func buildKey(s3b *S3Bucket, path string) Path {
return s3b.KeyPrefix.Join(SplitIntoPath(path))
}

func buildPath(s3b *S3Bucket, key string) (string, bool) {
_key := SplitIntoPath(key)
if !_key.IsPrefixed(s3b.KeyPrefix) {
return "", false
}
return "/" + _key[len(s3b.KeyPrefix):].String(), true
}

func (s3io *S3BucketIO) Fileread(req *sftp.Request) (io.ReaderAt, error) {
if !s3io.Perms.Readable {
return nil, fmt.Errorf("read operation not allowed as per configuration")
Expand Down