Пример #1
0
        private async Task CreateRootIndexFile()
        {
            var fileName = $"{CommonKeys.TEMP_FOLDER_NAME}/{Guid.NewGuid()}.txt";
            var file     = FileCreator.CreateFileAndPath(fileName);

            file.Close();
            await _amazonAdapter.UploadObjectAsync(_bucketName, _rootIndexName, fileName);
        }
Пример #2
0
        public Stream CreateFileStream(string filepath)
        {
            var tempFilePath = GetTempFilePathFromOriginalFilename(filepath).Replace('/', Path.PathSeparator);
            var fileStream   = FileCreator.CreateFileAndPath(tempFilePath);
            var amazonStream = new AmazonDataLakeStream(_amazonAdapter, fileStream, _bucketName, filepath);

            return(amazonStream);
        }
Пример #3
0
        public Stream CreateFileStream(string filepath)
        {
            var fileStream = FileCreator.CreateFileAndPath(filepath);

            return(fileStream);
        }