26 lines
516 B
C++
26 lines
516 B
C++
|
#include "file_oper.h"
|
||
|
|
||
|
CFileOpr::CFileOpr()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
CFileOpr::~CFileOpr()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
std::vector<std::string> CFileOpr::get_file_list(const std::string& input)
|
||
|
{
|
||
|
std::vector<std::string> result;
|
||
|
std::string backup = input;
|
||
|
backup.erase(0, backup.find_first_of(" "));
|
||
|
backup = COfStr::trim(backup);
|
||
|
if (backup.empty()) {
|
||
|
return result;
|
||
|
}
|
||
|
auto vec = COfStr::split(backup, "|");
|
||
|
for (const auto& item : vec) {
|
||
|
result.push_back(COfPath::to_full(item));
|
||
|
}
|
||
|
return result;
|
||
|
}
|