Exemple #1
0
        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);
        }
Exemple #2
0
 public long GetSize()
 {
     return(DDBWrapper.Info(DatasetFolderPath).FirstOrDefault()?.Size ?? 0);
 }