public async Task <string> ReadAllTextAsync(string pathToFile)
        {
            pathToFile = pathToFile.Replace("\\", "/");
            var fileExists = await BucketManager.FileExistsAsync(_Client, _Bucket, pathToFile);

            if (!fileExists)
            {
                return(null);
            }
            var text = await BucketManager.ReadAllTextAsync(_Client, _Bucket, pathToFile);

            return(text);
        }
        public async Task <Master> ReadAsync(string masterDirectory)
        {
            var result = await BucketManager.FolderExistsAsync(_Client, _Bucket, masterDirectory);

            if (!result)
            {
                return(null);
            }
            var masterFiles = await BucketManager.ListFilesAsync(_Client, _Bucket, masterDirectory, ".json");

            if (masterFiles == null || !masterFiles.Any())
            {
                return(null);
            }
            var currentMasterFile = masterFiles.OrderByDescending(f => f).First();
            var text = await BucketManager.ReadAllTextAsync(_Client, _Bucket, currentMasterFile);

            var master = JsonConvert.DeserializeObject <Master>(text);

            return(master);
        }