mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Initial add of PowerRename from SmartRename repo (#499)
* Initial add of PowerRename from SmartRename repo
This commit is contained in:
25
src/modules/powerrename/unittests/TestFileHelper.h
Normal file
25
src/modules/powerrename/unittests/TestFileHelper.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
class CTestFileHelper
|
||||
{
|
||||
public:
|
||||
CTestFileHelper();
|
||||
~CTestFileHelper();
|
||||
|
||||
bool AddFile(_In_ const std::wstring path);
|
||||
bool AddFolder(_In_ const std::wstring path);
|
||||
const std::filesystem::path GetTempDirectory() { return _tempDirectory; }
|
||||
bool PathExists(_In_ const std::wstring path);
|
||||
std::filesystem::path GetFullPath(_In_ const std::wstring path);
|
||||
|
||||
private:
|
||||
bool _CreateTempDirectory();
|
||||
void _DeleteTempDirectory();
|
||||
|
||||
std::filesystem::path _tempDirectory;
|
||||
};
|
||||
Reference in New Issue
Block a user