Revision 7fef13f0 snf-pithos-backend/pithos/backends/modular.py

b/snf-pithos-backend/pithos/backends/modular.py
1658 1658
        # raise ValueError('Bad characters in permissions')
1659 1659
        pass
1660 1660

  
1661
    def _get_formatted_paths(self, paths):
1662
        formatted = []
1663
        for p in paths:
1664
            node = self.node.node_lookup(p)
1665
            props = None
1666
            if node is not None:
1667
                props = self.node.version_lookup(node, inf, CLUSTER_NORMAL)
1668
            if props is not None:
1669
                if props[self.TYPE].split(';', 1)[0].strip() in (
1670
                        'application/directory', 'application/folder'):
1671
                    formatted.append((p.rstrip('/') + '/', self.MATCH_PREFIX))
1672
                formatted.append((p, self.MATCH_EXACT))
1673
        return formatted
1674 1661

  
1675 1662
    def _get_formatted_paths(self, paths):
1676 1663
        formatted = []

Also available in: Unified diff