File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 22#include < regex>
33#include < string>
44#include < vector>
5+ #if __cplusplus >= 201703L
56#include < filesystem>
7+ #else
8+ #include < cstdlib>
9+ #endif
610
711int main () {
12+ #if __cplusplus >= 201703L
813 std::filesystem::remove_all (logit::get_exec_dir () + " /rotation_tms" );
14+ #else
15+ #ifdef _WIN32
16+ std::string clean = logit::get_exec_dir () + " \\ rotation_tms" ;
17+ std::string cmd = " rmdir /s /q \" " + clean + " \" " ;
18+ #else
19+ std::string clean = logit::get_exec_dir () + " /rotation_tms" ;
20+ std::string cmd = " rm -rf \" " + clean + " \" " ;
21+ #endif
22+ std::system (cmd.c_str ());
23+ #endif
924 const std::string dir = logit::get_exec_dir () + " /rotation_tms" ;
1025 logit::FileLogger::Config cfg;
1126 cfg.directory = " rotation_tms" ;
Original file line number Diff line number Diff line change 22#include < regex>
33#include < string>
44#include < vector>
5+ #if __cplusplus >= 201703L
56#include < filesystem>
7+ #else
8+ #include < cstdlib>
9+ #endif
610
711int main () {
12+ #if __cplusplus >= 201703L
813 std::filesystem::remove_all (logit::get_exec_dir () + " /rotation_ts" );
14+ #else
15+ #ifdef _WIN32
16+ std::string clean = logit::get_exec_dir () + " \\ rotation_ts" ;
17+ std::string cmd = " rmdir /s /q \" " + clean + " \" " ;
18+ #else
19+ std::string clean = logit::get_exec_dir () + " /rotation_ts" ;
20+ std::string cmd = " rm -rf \" " + clean + " \" " ;
21+ #endif
22+ std::system (cmd.c_str ());
23+ #endif
924 const std::string dir = logit::get_exec_dir () + " /rotation_ts" ;
1025 logit::FileLogger::Config cfg;
1126 cfg.directory = " rotation_ts" ;
You can’t perform that action at this time.
0 commit comments