mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 14:32:06 +08:00
func_create_ff.cpp
This commit is contained in:
parent
782ed152ec
commit
b36fa27ebf
|
@ -28,22 +28,6 @@ Func2::CreateFF::~CreateFF()
|
||||||
|
|
||||||
namespace l
|
namespace l
|
||||||
{
|
{
|
||||||
bool
|
|
||||||
fnmatch(std::vector<std::string> const &patterns_,
|
|
||||||
const char *string_)
|
|
||||||
{
|
|
||||||
int rv;
|
|
||||||
|
|
||||||
for(auto const &pattern : patterns_)
|
|
||||||
{
|
|
||||||
rv = ::fnmatch(patterns_.c_str(),string_,FNM_EXTMATCH);
|
|
||||||
if(rv == 0)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static
|
static
|
||||||
int
|
int
|
||||||
create(Branches2 &branches_,
|
create(Branches2 &branches_,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user