Revision d1589d7c

b/tools/backendfs.py
42 42

  
43 43
class BackendFS(LoggingMixIn, Operations):
44 44
    def __init__(self, account):
45
        self.user = None
45
        self.user = account
46 46
        self.account = account
47 47
        self.backend = BackendProxy(backend, self.user, self.account)
48 48
    
......
141 141
    
142 142
    def truncate(self, path, length, fh=None):
143 143
        container, sep, object = path[1:].partition('/')
144
        if object:
144
        if not object:
145 145
            raise FuseOSError(EISDIR)
146 146
        
147 147
        size, hashmap = self.backend.get_object_hashmap(container, object)

Also available in: Unified diff