mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 09:43:45 +08:00
filter .fuse_hidden* files from readdir
This commit is contained in:
parent
9c16ab6999
commit
645c798b91
|
@ -74,6 +74,8 @@ _readdir(const vector<string> &srcmounts,
|
||||||
rv = 0;
|
rv = 0;
|
||||||
for(struct dirent *de = fs::readdir(dh); de && !rv; de = fs::readdir(dh))
|
for(struct dirent *de = fs::readdir(dh); de && !rv; de = fs::readdir(dh))
|
||||||
{
|
{
|
||||||
|
if(!strncmp(de->d_name,".fuse_hidden",12))
|
||||||
|
continue;
|
||||||
rv = names.put(de->d_name);
|
rv = names.put(de->d_name);
|
||||||
if(rv == 0)
|
if(rv == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user