0

I created a file in asp.net temporary folder. How long this file will be available in the temporary dir?

George Paoli
  • 2,257
  • 1
  • 24
  • 29
  • 3
    as long as the temp folder exists, I don't recall any expiration policy – pedrommuller Jul 21 '15 at 20:35
  • possible duplicate of [Do files created with Path.GetTempFileName get cleaned up automatically?](http://stackoverflow.com/questions/9201360/do-files-created-with-path-gettempfilename-get-cleaned-up-automatically) – CodeCaster Jul 21 '15 at 22:32

1 Answers1

1

The file is deemed temporary only through its 'tmp' extension and and it's placement in the temporary folder for the user. Such files are not deleted by the OS.

See: https://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename(v=vs.110).aspx

HashPsi
  • 1,391
  • 2
  • 12
  • 22