From 6fd2662e04f21c019fe8897390768afab417a6d0 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 10 Mar 2024 17:53:13 -0500 Subject: [PATCH] func_create_ff.cpp --- src/func_create_ff.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/func_create_ff.cpp b/src/func_create_ff.cpp index 8657175d..a8ffca62 100644 --- a/src/func_create_ff.cpp +++ b/src/func_create_ff.cpp @@ -65,16 +65,8 @@ namespace l { if(branch.mode != +Branch2::Mode::RW) continue; - for(auto const &fnmatch : branch.exclude) - { - int rv; - const char *pattern = "*"; - - rv = fnmatch(pattern,fusepath_.string().c_str(),FNM_CASEFOLD); - - if(rv == 0) - continue; - } + if(branch.matches_exclude(fusepath_)) + continue; rv = fs::info(branch.path,&info); if(rv == -1) continue;