TempFiles.cpp 317 B

12345678910111213141516171819202122
  1. // TempFiles.cpp
  2. #include "StdAfx.h"
  3. #include "TempFiles.h"
  4. #include "Windows/FileDir.h"
  5. #include "Windows/FileIO.h"
  6. using namespace NWindows;
  7. using namespace NFile;
  8. void CTempFiles::Clear()
  9. {
  10. while(!Paths.IsEmpty())
  11. {
  12. NDirectory::DeleteFileAlways((LPCWSTR)Paths.Back());
  13. Paths.DeleteBack();
  14. }
  15. }