mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
1
This commit is contained in:
@@ -118,8 +118,3 @@ func (b *Bucket) PutObjectFromBytes(from []byte, to string) error {
|
|||||||
reader := bytes.NewReader(from)
|
reader := bytes.NewReader(from)
|
||||||
return b.Bucket.PutObject(to, reader)
|
return b.Bucket.PutObject(to, reader)
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsObjectExist 判断文件是否存在
|
|
||||||
func (b *Bucket) IsObjectExist(objectKey string) (bool, error) {
|
|
||||||
return b.Bucket.IsObjectExist(objectKey)
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user