String converts this Fs to a string
()
| 378 | |
| 379 | // String converts this Fs to a string |
| 380 | func (f *Fs) String() string { |
| 381 | if f.rootBucket == "" { |
| 382 | return "B2 root" |
| 383 | } |
| 384 | if f.rootDirectory == "" { |
| 385 | return fmt.Sprintf("B2 bucket %s", f.rootBucket) |
| 386 | } |
| 387 | return fmt.Sprintf("B2 bucket %s path %s", f.rootBucket, f.rootDirectory) |
| 388 | } |
| 389 | |
| 390 | // Features returns the optional features of this Fs |
| 391 | func (f *Fs) Features() *fs.Features { |