public async Task TaskUploadNewFile(IFileSystemItem file) { var safeFilePath = Regex.Replace(file.FullPath.Replace(RootPath, ""), "[" + Regex.Escape(new string(Path.GetInvalidFileNameChars())) + "]", "_"); var savedPath = await _fileManager.SaveFileAsync(DataFeedId, RunId, safeFilePath, _dataFeedFileLoader.GetFileContent(file.FullPath)); _savedFiles.Add(savedPath); }