如何使用c#在本地系统中创建临时文件夹

How to create temporary folder in local system using c#

我想在我的本地系统中创建一个临时文件夹并将文件以 ZIP 格式上传到该特定文件夹。

注意:文件路径取自SharePoint文档库

提前致谢

这将创建一个临时目录:

   string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
   Directory.CreateDirectory(tempDirectory);