public Entry GetInfo(string path) { if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentException("Path cannot be null or empty"); } var info = DDBWrapper.Info(DatasetFolderPath); var entry = info.FirstOrDefault(); if (entry == null) { throw new InvalidOperationException("Cannot get ddb info of dataset"); } return(entry); }
public long GetSize() { return(DDBWrapper.Info(DatasetFolderPath).FirstOrDefault()?.Size ?? 0); }