Esempio n. 1
0
        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);
        }