diff options
| -rw-r--r-- | netfs/fuse/fuseDirs.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index 17054d2..c780866 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -74,12 +74,12 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_  			filler(buf, e.c_str(), NULL, 0);  			std::string epath = path + "/" + e;  			auto asga = volume->begin_getattr(reqEnv(), epath); -			statCache.add(epath, -						StatCache::Factory([asga,this]() { +			statCache.addFactory(epath, +						[asga,this]() {  							struct stat s;  							s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup };  							return s; -						}), time_t(NULL) + 2); +						}, time_t(NULL) + 2);  		}  		return 0;  	} | 
