// dirIsEmpty check if the bucket empty
dirIsEmpty check if the bucket empty
// dirIsEmpty check if the bucket empty
func (f *Fs) dirIsEmpty() (bool, error) {
	bucketInit, err := f.svc.Bucket(f.bucket, f.zone)
	if err != nil {
		return true, err
	}
	statistics, err := bucketInit.GetStatistics()
	if err != nil {
		return true, err
	}
	if *statistics.Count == 0 {
		return true, nil
	}
	return false, nil
}
func ( f * Fs ) dirIsEmpty ( ) ( bool , error ) { bucketInit , err := f . svc . Bucket ( f . bucket , f . zone ) if err != nil { return true , err } statistics , err := bucketInit . GetStatistics ( ) if err != nil { return true , err } if * statistics . Count == 0 { return true , nil } return false , nil }
dirIsEmpty check if the bucket empty
dirIsEmpty check if the bucket empty