提交 32462312 编写于 作者: D Davies Liu

fix Chmod/Chown with prefix

上级 d0aad743
...@@ -86,6 +86,20 @@ func (p *withPrefix) Chown(path string, owner, group string) error { ...@@ -86,6 +86,20 @@ func (p *withPrefix) Chown(path string, owner, group string) error {
return nil return nil
} }
func (p *withPrefix) Chmod(path string, mode os.FileMode) error {
if fs, ok := p.os.(FileSystem); ok {
return fs.Chmod(p.prefix+path, mode)
}
return notSupported
}
func (p *withPrefix) Chown(path string, owner, group string) error {
if fs, ok := p.os.(FileSystem); ok {
return fs.Chown(p.prefix+path, owner, group)
}
return notSupported
}
func (p *withPrefix) CreateMultipartUpload(key string) (*MultipartUpload, error) { func (p *withPrefix) CreateMultipartUpload(key string) (*MultipartUpload, error) {
return p.os.CreateMultipartUpload(p.prefix + key) return p.os.CreateMultipartUpload(p.prefix + key)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册