mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
branch2.cpp
This commit is contained in:
parent
7779c1e149
commit
aa90e25c17
1 changed files with 1 additions and 2 deletions
|
|
@ -70,13 +70,12 @@ Branch2::operator=(Branch2 const &b_)
|
|||
bool
|
||||
Branch2::matches_exclude(ghc::filesystem::path const &path_) const
|
||||
{
|
||||
int rv;
|
||||
const char *path;
|
||||
|
||||
path = path_.string().c_str();
|
||||
for(auto const &pattern : exclude_patterns)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH);
|
||||
if(rv == 0)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue