14 lines
No EOL
250 B
C++
14 lines
No EOL
250 B
C++
#include<filesystem>
|
|
#include<iostream>
|
|
using namespace std;
|
|
int main(int argc, char* argv[])
|
|
{
|
|
for(int i=1;i<argc;i++){
|
|
if(!filesystem::exists(argv[i]))
|
|
{
|
|
cerr<<"error, no such file or directory";
|
|
return 1;
|
|
}
|
|
filesystem::remove_all(argv[i]);
|
|
}
|
|
} |