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); }
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); }
public Stream CreateFileStream(string filepath) { var fileStream = FileCreator.CreateFileAndPath(filepath); return(fileStream); }