class BackendFS(LoggingMixIn, Operations):
def __init__(self, account):
- self.user = None
+ self.user = account
self.account = account
self.backend = BackendProxy(backend, self.user, self.account)
def truncate(self, path, length, fh=None):
container, sep, object = path[1:].partition('/')
- if object:
+ if not object:
raise FuseOSError(EISDIR)
size, hashmap = self.backend.get_object_hashmap(container, object)