mirror of
https://github.com/xxjwxc/public.git
synced 2025-12-24 11:51:49 +08:00
1
This commit is contained in:
@@ -118,3 +118,8 @@ func (b *Bucket) PutObjectFromBytes(from []byte, to string) error {
|
||||
reader := bytes.NewReader(from)
|
||||
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