Commit acbcaa50 authored by vlad_burin's avatar vlad_burin
Browse files

Added DeleteDirectory() method to rdk_system. Implemented in Qt

--HG--
branch : BaseClassifierTest
parent c3b5d63e00e4
......@@ -97,6 +97,19 @@ int CreateNewDirectory(const char* path)
return 3;
}
//
int DeleteDirectory(const char* path)
{
QDir dir(path);
if(!dir.exists())
return 1;
if(dir.removeRecursively())
return 0;
else
return 1;
}
//
int FindFilesList(const std::string &path, const std::string &mask, bool isfile, std::vector<std::string> &results)
{
......
......@@ -38,6 +38,9 @@ RDK_LIB_TYPE void Sleep(int value);
/// 3 -
RDK_LIB_TYPE int CreateNewDirectory(const char* path);
///
RDK_LIB_TYPE int DeleteDirectory(const char* path);
///
RDK_LIB_TYPE int FindFilesList(const std::string &path, const std::string &mask, bool isfile, std::vector<std::string> &results);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment