fromPath static method
Implementation
static Future<StorageBucketModel?> fromPath(String path) async {
BucketInfo? info = await BucketController.fromPath(path);
if (info == null) return null;
// here this means that the acm file is valid
String? creatorId = info.creatorId;
int? maxSize = info.maxAllowedSize;
Directory directory = Directory(info.path);
var bucket = StorageBucketModel(
info.id,
creatorId: creatorId,
maxAllowedSize: maxSize,
parentFolderPath: directory.parent.path,
);
return bucket;
}