Are files in the temporary folder automatically deleted?

前端 未结 4 1405
我寻月下人不归
我寻月下人不归 2020-12-11 15:01

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?

4条回答
  •  执笔经年
    2020-12-11 15:26

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

提交回复
热议问题