Compare commits

..

1 commit
4.0 ... main

Author SHA1 Message Date
patricus
6a706392a6 fixes #5 2025-07-05 19:38:18 +02:00

View file

@ -9,12 +9,19 @@ for(int i=1;i<argc;i++){
if (string(argv[i]) == "-v")
{
cout<<"patricus utils, version "+string(VERSION);
return 0;
}
if(!filesystem::exists(argv[i]))
{
cerr<<"error, no such file or directory";
return 1;
}
try
{
filesystem::remove_all(argv[i]);
}
catch(std::filesystem::filesystem_error){
cout<<"error: permission denied";
}
}
}