2021-10-19 21:27:23 +01:00
|
|
|
// WorkDir.h
|
|
|
|
|
|
2023-09-24 03:13:03 +01:00
|
|
|
#ifndef ZIP7_INC_WORK_DIR_H
|
|
|
|
|
#define ZIP7_INC_WORK_DIR_H
|
2021-10-19 21:27:23 +01:00
|
|
|
|
|
|
|
|
#include "../../../Windows/FileDir.h"
|
|
|
|
|
|
|
|
|
|
#include "../../Common/FileStreams.h"
|
|
|
|
|
|
|
|
|
|
#include "ZipRegistry.h"
|
|
|
|
|
|
|
|
|
|
FString GetWorkDir(const NWorkDir::CInfo &workDirInfo, const FString &path, FString &fileName);
|
|
|
|
|
|
|
|
|
|
class CWorkDirTempFile
|
|
|
|
|
{
|
|
|
|
|
FString _originalPath;
|
|
|
|
|
NWindows::NFile::NDir::CTempFile _tempFile;
|
|
|
|
|
COutFileStream *_outStreamSpec;
|
|
|
|
|
public:
|
|
|
|
|
CMyComPtr<IOutStream> OutStream;
|
|
|
|
|
|
|
|
|
|
HRESULT CreateTempFile(const FString &originalPath);
|
|
|
|
|
HRESULT MoveToOriginal(bool deleteOriginal);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|