且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在azure中创建或使用本地文件夹

更新时间:2023-11-04 10:35:52

在Azure环境中,Web作业存储在其本地文件夹中,其中称为D:\\ \\ homeD:\ local是Web钩子使用的本地文件夹。我需要使用一个文件夹临时使用从SFTP服务器下载文件,并再次从该本地临时位置文件中读取文件并在我的应用程序中使用它。



我用D:\local\Temp作为临时文件夹,在检查文件夹存在后由代码创建,然后在创建文件夹后代码将下载文件从服务器和商店到这个位置,然后从同一位置读取并从该临时文件夹中删除文件。





感谢Afzal &安培;所有支持的人。
In Azure Environment, the "Web-Jobs" are stored in its local folder where known as "D:\home" and "D:\local" is the local folder used by the Web-hooks. I was in need to use a folder for temporary usage of downloading a file from SFTP server and again read the file from that local temporary location file and consume it in my application.

I have used the "D:\local\Temp" as the temporary folder which is created by the code after checking the folder existence, then after creating the folder the code will download a file from server and store to this location and then read from the same location and delete the file from that temporary folder.


Thanks for Afzal & all those who supported.