临时文件夹中的文件是否自动删除? [英] Are files in the temporary folder automatically deleted?

查看:255
本文介绍了临时文件夹中的文件是否自动删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用Path.GetTempPath()创建一些文件-它会在某个阶段自动删除还是由我决定删除它?

If I create some file using Path.GetTempPath() - does it automatically get deleted at some stage, or is it up to me to delete it?

推荐答案

否,您将需要手动删除该文件. Path.GetTempPath()只是为您提供了temp文件夹的文件夹路径.

No, you will need to manually delete the file. Path.GetTempPath() just gives you the folder path to the temp folder.

这篇关于临时文件夹中的文件是否自动删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆