Commit 8c81ab30 by rfkelly0

wrap_fs_methods: also direclty wrap setcontents()

parent 6593c470
......@@ -253,8 +253,10 @@ def wrap_fs_methods(decorator,cls=None):
"""
methods = ("open","exists","isdir","isfile","listdir","makedir","remove",
"removedir","rename","getinfo","copy","move","copydir",
"movedir","close","getxattr","setxattr","delxattr","listxattrs")
"setcontents","removedir","rename","getinfo","copy","move",
"copydir","movedir","close","getxattr","setxattr","delxattr",
"listxattrs")
def apply_decorator(cls):
for method_name in methods:
method = getattr(cls,method_name,None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment