def getattr(self, path): # {{{3
    try:
      self.__log_call('getattr', 'getattr(%r)', path)
      inode = self.__path2keys(path)[1]
      query = 'SELECT inode, nlinks, mode, uid, gid, rdev, size, atime, mtime, ctime FROM inodes WHERE inode = ?'
      attrs = self.conn.execute(query, (inode,)).fetchone()
      result = Stat(st_ino     = attrs[0],
                    st_nlink   = attrs[1],
                    st_mode    = attrs[2],
                    st_uid     = attrs[3],
                    st_gid     = attrs[4],
                    st_rdev    = attrs[5],
                    st_size    = attrs[6],
                    st_atime   = attrs[7],
                    st_mtime   = attrs[8],
                    st_ctime   = attrs[9],
                    st_blksize = self.block_size,
                    st_blocks  = 512 / attrs[6],
                    st_dev     = 0)
      self.logger.debug("getattr(%r) returning %s", path, result)
      return result
    except Exception, e:
      self.logger.debug("getattr(%r) returning ENOENT", path)
      return self.__except_to_status('getattr', e, errno.ENOENT)
dataset/ETHPy150Open xolox/dedupfs/dedupfs.py/DedupFS.getattr/swapped operands of `/`