fromPath static method

Future<BucketInfo?> fromPath(
  1. String bucketPath
)

Implementation

static Future<BucketInfo?> fromPath(String bucketPath) async {
  try {
    SBBoxes sbBoxes = SBBoxes.fromPath(bucketPath);
    BucketInfo? info = await _fromBoxes(sbBoxes, bucketPath);
    // if (info == null) {
    // here i will create and initialize the bucket and return it's info
    // don't do that
    // }
    return info;
  } catch (e) {
    return null;
  }
}