Revision 692485cc snf-pithos-tools/pithos/tools/sync.py

b/snf-pithos-tools/pithos/tools/sync.py
148 148
            meta = client.retrieve_object_metadata(self.container, path)
149 149
        except Fault:
150 150
            return 'DEL'
151
        if meta.get('content-type', None) == 'application/directory':
151
        if meta.get('content-type', '').split(';', 1)[0].strip() == 'application/directory':
152 152
            return 'DIR'
153 153
        else:
154 154
            return meta['x-object-hash']
......
292 292
            if 'subdir' in object:
293 293
                continue
294 294
            name = object['name']
295
            if object['content_type'] == 'application/directory':
295
            if object['content_type'].split(';', 1)[0].strip() == 'application/directory':
296 296
                dirs.add(name)
297 297
            else:
298 298
                files.add(name)

Also available in: Unified diff